Trait alga::linear::Translation [] [src]

pub trait Translation<E: EuclideanSpace>: DirectIsometry<E> {
    fn to_vector(&self) -> E::Vector;
    fn from_vector(v: &E::Vector) -> Option<Self>;

    fn powf(&self, n: E::Real) -> Option<Self> { ... }
    fn translation_between(a: &E, b: &E) -> Option<Self> { ... }
}

Subgroups of the n-dimensional translation group T(n).

Required Methods

Converts this translation to a vector.

Attempts to convert a vector to this translation. Returns None if the translation represented by v is not part of the translation subgroup represented by Self.

Provided Methods

Raises the translation to a power. The result must be equivalent to self.to_superset() * n. Returns None if the result is not representable by Self.

The translation needed to make a coinside with b, i.e., b = a * translation_to(a, b).

Implementors