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.
Implementors
impl Spatial for f32impl Spatial for f64impl Spatial for i8impl Spatial for i16impl Spatial for i32impl Spatial for i64impl Spatial for u8impl Spatial for u16impl Spatial for u32impl Spatial for u64impl<T> Spatial for [T; 2] where T: Spatialimpl<T> Spatial for [T; 3] where T: Spatialimpl<T> Spatial for [T; 4] where T: Spatial