Trait interpolation::Spatial [−][src]
pub trait Spatial {
type Scalar;
fn add(&self, other: &Self) -> Self;
fn sub(&self, other: &Self) -> Self;
fn scale(&self, scalar: &Self::Scalar) -> Self;
}Used for interpolation over spatial structures.
Associated Types
type Scalar
The scalar type.
Required Methods
fn add(&self, other: &Self) -> Self
Add
fn sub(&self, other: &Self) -> Self
Subtract
fn scale(&self, scalar: &Self::Scalar) -> Self
Scales with a scalar.
Implementations on Foreign Types
impl Spatial for f32[src]
impl Spatial for f32impl Spatial for f64[src]
impl Spatial for f64impl Spatial for i8[src]
impl Spatial for i8impl Spatial for i16[src]
impl Spatial for i16impl Spatial for i32[src]
impl Spatial for i32impl Spatial for i64[src]
impl Spatial for i64impl Spatial for u8[src]
impl Spatial for u8impl Spatial for u16[src]
impl Spatial for u16impl Spatial for u32[src]
impl Spatial for u32impl Spatial for u64[src]
impl Spatial for u64impl<T> Spatial for [T; 2] where
T: Spatial, [src]
impl<T> Spatial for [T; 2] where
T: Spatial, impl<T> Spatial for [T; 3] where
T: Spatial, [src]
impl<T> Spatial for [T; 3] where
T: Spatial, impl<T> Spatial for [T; 4] where
T: Spatial, [src]
impl<T> Spatial for [T; 4] where
T: Spatial,