Trait alga::linear::Similarity [] [src]

pub trait Similarity<E: EuclideanSpace>: Group<Multiplicative> {
    type Translation: Translation<E>;
    type Rotation: Rotation<E>;
    fn translation(&self) -> Self::Translation;
    fn rotation(&self) -> Self::Rotation;
    fn scaling_factor(&self) -> E::Real;
}

The group S(n) of similarities, i.e., rotations, translations, and (signed) uniform scaling.

Similarities map lines to lines and preserve angles.

Associated Types

The type of the pure translation part of this similarity.

The type of the pure rotational part of this similarity.

Required Methods

The translational component of this similarity.

The rotational component of this similarity.

The scaling factor of this similarity.

Implementors