Skip to content

Commit c409c9d

Browse files
committed
Rename Matrix4D and Matrix2D into Transform3D and Transform2D.
1 parent 5f796a1 commit c409c9d

File tree

3 files changed

+207
-192
lines changed

3 files changed

+207
-192
lines changed

src/lib.rs

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ extern crate num_traits;
6969

7070
pub use length::Length;
7171
pub use scale_factor::ScaleFactor;
72-
pub use matrix2d::{Matrix2D, TypedMatrix2D};
73-
pub use matrix4d::{Matrix4D, TypedMatrix4D};
72+
pub use transform2d::{Transform2D, TypedTransform2D};
73+
pub use transform3d::{Transform3D, TypedTransform3D};
7474
pub use point::{
7575
Point2D, TypedPoint2D,
7676
Point3D, TypedPoint3D,
@@ -85,8 +85,8 @@ pub mod approxeq;
8585
pub mod length;
8686
#[macro_use]
8787
mod macros;
88-
pub mod matrix2d;
89-
pub mod matrix4d;
88+
pub mod transform2d;
89+
pub mod transform3d;
9090
pub mod num;
9191
pub mod point;
9292
pub mod rect;
@@ -110,3 +110,20 @@ pub type Radians<T> = Length<T, Rad>;
110110

111111
/// A value in Degrees.
112112
pub type Degrees<T> = Length<T, Deg>;
113+
114+
/// Temporary alias to facilitate the transition to the new naming scheme
115+
#[deprecated]
116+
pub type Matrix2D<T> = Transform2D<T>;
117+
118+
/// Temporary alias to facilitate the transition to the new naming scheme
119+
#[deprecated]
120+
pub type TypedMatrix2D<T, Src, Dst> = TypedTransform2D<T, Src, Dst>;
121+
122+
/// Temporary alias to facilitate the transition to the new naming scheme
123+
#[deprecated]
124+
pub type Matrix4D<T> = Transform3D<T>;
125+
126+
/// Temporary alias to facilitate the transition to the new naming scheme
127+
#[deprecated]
128+
pub type TypedMatrix4D<T, Src, Dst> = TypedTransform3D<T, Src, Dst>;
129+

0 commit comments

Comments
 (0)