Trait alga::linear::AffineSpace [] [src]

pub trait AffineSpace: Sized + Clone {
    type Translation: VectorSpace;
    fn translate_by(&self, t: &Self::Translation) -> Self;
    fn subtract(&self, other: &Self) -> Self::Translation;
}

A set points associated with a vector space and a transitive and free additive group action (the translation).

Associated Types

The associated vector space.

Required Methods

Applies the additive group action of this affine space's associated vector space on self.

Returns the unique element v of the associated vector space such that self = other + v.

Implementors