Trait vector_space::VectorSpace[][src]

pub trait VectorSpace: Copy + Zero + PartialEq where
    Self: Add<Output = Self>,
    Self: Sub<Output = Self>,
    Self: Mul<Self::Scalar, Output = Self>,
    Self: Div<Self::Scalar, Output = Self>,
    Self: Neg<Output = Self>, 
{ type Scalar: Real + PartialOrd; fn lerp(self, other: Self, amount: Self::Scalar) -> Self { ... } }
Expand description

This trait specifies some type to be a vector type. It specifies the scalar type and is required for other vector types.

Associated Types

The scalar type of the vector space.

Provided methods

The linear interpolation of two vectors.

Implementations on Foreign Types

Implementors