[−][src]Trait interpolation::Spatial
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 f32
type Scalar = f32
fn add(&self, other: &f32) -> f32
[src]
fn add(&self, other: &f32) -> f32
fn sub(&self, other: &f32) -> f32
[src]
fn sub(&self, other: &f32) -> f32
fn scale(&self, other: &f32) -> f32
[src]
fn scale(&self, other: &f32) -> f32
impl Spatial for f64
[src]
impl Spatial for f64
type Scalar = f64
fn add(&self, other: &f64) -> f64
[src]
fn add(&self, other: &f64) -> f64
fn sub(&self, other: &f64) -> f64
[src]
fn sub(&self, other: &f64) -> f64
fn scale(&self, other: &f64) -> f64
[src]
fn scale(&self, other: &f64) -> f64
impl Spatial for i8
[src]
impl Spatial for i8
type Scalar = f32
fn add(&self, other: &i8) -> i8
[src]
fn add(&self, other: &i8) -> i8
fn sub(&self, other: &i8) -> i8
[src]
fn sub(&self, other: &i8) -> i8
fn scale(&self, other: &f32) -> i8
[src]
fn scale(&self, other: &f32) -> i8
impl Spatial for i16
[src]
impl Spatial for i16
type Scalar = f32
fn add(&self, other: &i16) -> i16
[src]
fn add(&self, other: &i16) -> i16
fn sub(&self, other: &i16) -> i16
[src]
fn sub(&self, other: &i16) -> i16
fn scale(&self, other: &f32) -> i16
[src]
fn scale(&self, other: &f32) -> i16
impl Spatial for i32
[src]
impl Spatial for i32
type Scalar = f32
fn add(&self, other: &i32) -> i32
[src]
fn add(&self, other: &i32) -> i32
fn sub(&self, other: &i32) -> i32
[src]
fn sub(&self, other: &i32) -> i32
fn scale(&self, other: &f32) -> i32
[src]
fn scale(&self, other: &f32) -> i32
impl Spatial for i64
[src]
impl Spatial for i64
type Scalar = f64
fn add(&self, other: &i64) -> i64
[src]
fn add(&self, other: &i64) -> i64
fn sub(&self, other: &i64) -> i64
[src]
fn sub(&self, other: &i64) -> i64
fn scale(&self, other: &f64) -> i64
[src]
fn scale(&self, other: &f64) -> i64
impl Spatial for u8
[src]
impl Spatial for u8
type Scalar = f32
fn add(&self, other: &u8) -> u8
[src]
fn add(&self, other: &u8) -> u8
fn sub(&self, other: &u8) -> u8
[src]
fn sub(&self, other: &u8) -> u8
fn scale(&self, other: &f32) -> u8
[src]
fn scale(&self, other: &f32) -> u8
impl Spatial for u16
[src]
impl Spatial for u16
type Scalar = f32
fn add(&self, other: &u16) -> u16
[src]
fn add(&self, other: &u16) -> u16
fn sub(&self, other: &u16) -> u16
[src]
fn sub(&self, other: &u16) -> u16
fn scale(&self, other: &f32) -> u16
[src]
fn scale(&self, other: &f32) -> u16
impl Spatial for u32
[src]
impl Spatial for u32
type Scalar = f32
fn add(&self, other: &u32) -> u32
[src]
fn add(&self, other: &u32) -> u32
fn sub(&self, other: &u32) -> u32
[src]
fn sub(&self, other: &u32) -> u32
fn scale(&self, other: &f32) -> u32
[src]
fn scale(&self, other: &f32) -> u32
impl Spatial for u64
[src]
impl Spatial for u64
type Scalar = f64
fn add(&self, other: &u64) -> u64
[src]
fn add(&self, other: &u64) -> u64
fn sub(&self, other: &u64) -> u64
[src]
fn sub(&self, other: &u64) -> u64
fn scale(&self, other: &f64) -> u64
[src]
fn scale(&self, other: &f64) -> u64
impl<T> Spatial for [T; 2] where
T: Spatial,
[src]
impl<T> Spatial for [T; 2] where
T: Spatial,
type Scalar = T::Scalar
fn add(&self, other: &Self) -> Self
[src]
fn add(&self, other: &Self) -> Self
fn sub(&self, other: &Self) -> Self
[src]
fn sub(&self, other: &Self) -> Self
fn scale(&self, scalar: &Self::Scalar) -> Self
[src]
fn scale(&self, scalar: &Self::Scalar) -> Self
impl<T> Spatial for [T; 3] where
T: Spatial,
[src]
impl<T> Spatial for [T; 3] where
T: Spatial,
type Scalar = T::Scalar
fn add(&self, other: &Self) -> Self
[src]
fn add(&self, other: &Self) -> Self
fn sub(&self, other: &Self) -> Self
[src]
fn sub(&self, other: &Self) -> Self
fn scale(&self, scalar: &Self::Scalar) -> Self
[src]
fn scale(&self, scalar: &Self::Scalar) -> Self
impl<T> Spatial for [T; 4] where
T: Spatial,
[src]
impl<T> Spatial for [T; 4] where
T: Spatial,
type Scalar = T::Scalar
fn add(&self, other: &Self) -> Self
[src]
fn add(&self, other: &Self) -> Self
fn sub(&self, other: &Self) -> Self
[src]
fn sub(&self, other: &Self) -> Self
fn scale(&self, scalar: &Self::Scalar) -> Self
[src]
fn scale(&self, scalar: &Self::Scalar) -> Self