nalgebra/src/geometry/similarity_alias.rs

14 lines
561 B
Rust
Raw Normal View History

2019-03-23 21:29:07 +08:00
use crate::geometry::{Rotation2, Rotation3, Similarity, UnitComplex, UnitQuaternion};
/// A 2-dimensional similarity.
2021-04-11 17:00:38 +08:00
pub type Similarity2<T> = Similarity<T, UnitComplex<T>, 2>;
/// A 3-dimensional similarity.
2021-04-11 17:00:38 +08:00
pub type Similarity3<T> = Similarity<T, UnitQuaternion<T>, 3>;
2017-02-13 01:17:09 +08:00
/// A 2-dimensional similarity using a rotation matrix for its rotation part.
2021-04-11 17:00:38 +08:00
pub type SimilarityMatrix2<T> = Similarity<T, Rotation2<T>, 2>;
/// A 3-dimensional similarity using a rotation matrix for its rotation part.
2021-04-11 17:00:38 +08:00
pub type SimilarityMatrix3<T> = Similarity<T, Rotation3<T>, 3>;