2017-08-03 01:37:44 +08:00
|
|
|
use core::dimension::{U2, U3};
|
2016-12-05 05:44:42 +08:00
|
|
|
|
2017-08-03 01:37:44 +08:00
|
|
|
use geometry::{Similarity, UnitQuaternion, UnitComplex, Rotation2, Rotation3};
|
2016-12-05 05:44:42 +08:00
|
|
|
|
|
|
|
/// A 2-dimensional similarity.
|
2017-08-03 01:37:44 +08:00
|
|
|
pub type Similarity2<N> = Similarity<N, U2, UnitComplex<N>>;
|
2016-12-05 05:44:42 +08:00
|
|
|
|
|
|
|
/// A 3-dimensional similarity.
|
2017-08-03 01:37:44 +08:00
|
|
|
pub type Similarity3<N> = Similarity<N, U3, UnitQuaternion<N>>;
|
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.
|
2017-08-03 01:37:44 +08:00
|
|
|
pub type SimilarityMatrix2<N> = Similarity<N, U2, Rotation2<N>>;
|
2016-12-05 05:44:42 +08:00
|
|
|
|
|
|
|
/// A 3-dimensional similarity using a rotation matrix for its rotation part.
|
2017-08-03 01:37:44 +08:00
|
|
|
pub type SimilarityMatrix3<N> = Similarity<N, U3, Rotation3<N>>;
|