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