nalgebra/src/geometry/similarity_alias.rs
2021-04-11 13:57:54 +02:00

14 lines
561 B
Rust

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>;