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
type Translation: Translation<E>
The type of the pure translation part of this similarity.
type Rotation: Rotation<E>
The type of the pure rotational part of this similarity.
Required Methods
fn translation(&self) -> Self::Translation
The translational component of this similarity.
fn rotation(&self) -> Self::Rotation
The rotational component of this similarity.
fn scaling_factor(&self) -> E::Real
The scaling factor of this similarity.