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