similarity_alias.rs - source
Description: Source of the Rust file `/Users/erlendbasso/.cargo/registry/src/github.com-1ecc6299db9ec823/nalgebra-0.32.1/src/geometry/similarity_alias.rs`.
Keywords: rust, rustlang, rust-lang

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13

    use crate::geometry::{Rotation2, Rotation3, Similarity, UnitComplex, UnitQuaternion};

    /// A 2-dimensional similarity.
    pub type Similarity2<T> = Similarity<T, UnitComplex<T>, 2>;

    /// A 3-dimensional similarity.
    pub type Similarity3<T> = Similarity<T, UnitQuaternion<T>, 3>;

    /// A 2-dimensional similarity using a rotation matrix for its rotation part.
    pub type SimilarityMatrix2<T> = Similarity<T, Rotation2<T>, 2>;

    /// A 3-dimensional similarity using a rotation matrix for its rotation part.
    pub type SimilarityMatrix3<T> = Similarity<T, Rotation3<T>, 3>;