Interpolate

Trait Interpolate 

Source
pub trait Interpolate {
    // Required method
    fn interpolate(&self, other: &Self, t: f64) -> Self;
}
Expand description

Easy access to interpolation tooling for All S2JSON Core Types

Required Methods§

Source

fn interpolate(&self, other: &Self, t: f64) -> Self

Interpolate between two of the same type

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Interpolate for f32

Source§

fn interpolate(&self, other: &f32, t: f64) -> f32

Source§

impl Interpolate for f64

Source§

fn interpolate(&self, other: &f64, t: f64) -> f64

Source§

impl Interpolate for i8

Source§

fn interpolate(&self, other: &i8, t: f64) -> i8

Source§

impl Interpolate for i16

Source§

fn interpolate(&self, other: &i16, t: f64) -> i16

Source§

impl Interpolate for i32

Source§

fn interpolate(&self, other: &i32, t: f64) -> i32

Source§

impl Interpolate for i64

Source§

fn interpolate(&self, other: &i64, t: f64) -> i64

Source§

impl Interpolate for isize

Source§

fn interpolate(&self, other: &isize, t: f64) -> isize

Source§

impl Interpolate for u8

Source§

fn interpolate(&self, other: &u8, t: f64) -> u8

Source§

impl Interpolate for u16

Source§

fn interpolate(&self, other: &u16, t: f64) -> u16

Source§

impl Interpolate for u32

Source§

fn interpolate(&self, other: &u32, t: f64) -> u32

Source§

impl Interpolate for u64

Source§

fn interpolate(&self, other: &u64, t: f64) -> u64

Source§

impl Interpolate for ()

Source§

fn interpolate(&self, _: &(), _: f64)

Source§

impl Interpolate for usize

Source§

fn interpolate(&self, other: &usize, t: f64) -> usize

Source§

impl<M> Interpolate for Option<M>
where M: Interpolate,

Source§

fn interpolate(&self, other: &Option<M>, t: f64) -> Option<M>

Implementors§