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: &Self, t: f64) -> Self

Source§

impl Interpolate for f64

Source§

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

Source§

impl Interpolate for i64

Source§

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

Source§

impl Interpolate for u64

Source§

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

Source§

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

Source§

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

Implementors§