Skip to content

Commit 2836bea

Browse files
authored
Add a 2D scale+offset transform type (#546)
1 parent 8548c23 commit 2836bea

3 files changed

Lines changed: 643 additions & 5 deletions

File tree

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub use crate::homogen::HomogeneousVector;
4747
pub use crate::length::Length;
4848
pub use crate::point::{point2, point3, Point2D, Point3D};
4949
pub use crate::scale::Scale;
50-
pub use crate::transform2d::Transform2D;
50+
pub use crate::transform2d::{ScaleOffset2D, Transform2D};
5151
pub use crate::transform3d::Transform3D;
5252
pub use crate::vector::{bvec2, bvec3, BoolVector2D, BoolVector3D};
5353
pub use crate::vector::{vec2, vec3, Vector2D, Vector3D};
@@ -113,4 +113,5 @@ pub mod default {
113113
pub type Translation3D<T> = super::Translation3D<T, UnknownUnit, UnknownUnit>;
114114
pub type Scale<T> = super::Scale<T, UnknownUnit, UnknownUnit>;
115115
pub type RigidTransform3D<T> = super::RigidTransform3D<T, UnknownUnit, UnknownUnit>;
116+
pub type ScaleOffset2D<T> = super::ScaleOffset2D<T, UnknownUnit, UnknownUnit>;
116117
}

0 commit comments

Comments
 (0)