diff --git a/src/cgmath/transform.rs b/src/cgmath/transform.rs index fe5a543..b3cc9ac 100644 --- a/src/cgmath/transform.rs +++ b/src/cgmath/transform.rs @@ -204,30 +204,3 @@ impl ToMatrix4 for AffineMatrix3 { } impl Transform3 for AffineMatrix3 {} - - -/// A transformation in three dimensions consisting of a rotation, -/// displacement vector and scale amount. -pub struct Transform3D(Decomposed,Quaternion>); - -impl Transform3D { - #[inline] - pub fn new(scale: S, rot: Quaternion, disp: Vector3) -> Transform3D { - Transform3D( Decomposed { scale: scale, rot: rot, disp: disp }) - } - - #[inline] - pub fn translate(x: S, y: S, z: S) -> Transform3D { - Transform3D( Decomposed { scale: one(), rot: Quaternion::zero(), disp: Vector3::new(x, y, z) }) - } - - #[inline] - pub fn get<'a>(&'a self) -> &'a Decomposed,Quaternion> { - let &Transform3D(ref d) = self; - d - } -} - -impl ToMatrix4 for Transform3D { - fn to_matrix4(&self) -> Matrix4 { self.get().to_matrix4() } -}