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[src]

The scalar type.

Loading content...

Required methods

fn add(&self, other: &Self) -> Self[src]

Add

fn sub(&self, other: &Self) -> Self[src]

Subtract

fn scale(&self, scalar: &Self::Scalar) -> Self[src]

Scales with a scalar.

Loading content...

Implementations on Foreign Types

impl Spatial for f32[src]

type Scalar = f32

impl Spatial for f64[src]

type Scalar = f64

impl Spatial for i8[src]

type Scalar = f32

impl Spatial for i16[src]

type Scalar = f32

impl Spatial for i32[src]

type Scalar = f32

impl Spatial for i64[src]

type Scalar = f64

impl Spatial for u8[src]

type Scalar = f32

impl Spatial for u16[src]

type Scalar = f32

impl Spatial for u32[src]

type Scalar = f32

impl Spatial for u64[src]

type Scalar = f64

impl<T> Spatial for [T; 2] where
    T: Spatial
[src]

type Scalar = T::Scalar

impl<T> Spatial for [T; 3] where
    T: Spatial
[src]

type Scalar = T::Scalar

impl<T> Spatial for [T; 4] where
    T: Spatial
[src]

type Scalar = T::Scalar

Loading content...

Implementors

Loading content...