nalgebra/src/geometry/similarity_alias.rs

16 lines
590 B
Rust
Raw Normal View History

use base::dimension::{U2, U3};
2018-02-02 19:26:35 +08:00
use geometry::{Rotation2, Rotation3, Similarity, UnitComplex, UnitQuaternion};
/// A 2-dimensional similarity.
pub type Similarity2<N> = Similarity<N, U2, UnitComplex<N>>;
/// A 3-dimensional similarity.
pub type Similarity3<N> = Similarity<N, U3, UnitQuaternion<N>>;
2017-02-13 01:17:09 +08:00
/// A 2-dimensional similarity using a rotation matrix for its rotation part.
pub type SimilarityMatrix2<N> = Similarity<N, U2, Rotation2<N>>;
/// A 3-dimensional similarity using a rotation matrix for its rotation part.
pub type SimilarityMatrix3<N> = Similarity<N, U3, Rotation3<N>>;