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-11 17:00:38 +08:00
|
|
|
pub type Similarity2<T> = Similarity<T, UnitComplex<T>, 2>;
|
2016-12-05 05:44:42 +08:00
|
|
|
|
|
|
|
/// A 3-dimensional similarity.
|
2021-04-11 17:00:38 +08:00
|
|
|
pub type Similarity3<T> = Similarity<T, UnitQuaternion<T>, 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-11 17:00:38 +08:00
|
|
|
pub type SimilarityMatrix2<T> = Similarity<T, Rotation2<T>, 2>;
|
2016-12-05 05:44:42 +08:00
|
|
|
|
|
|
|
/// 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>;
|