diff --git a/src/transform.rs b/src/transform.rs index 4c9c7a6..a50e0d6 100644 --- a/src/transform.rs +++ b/src/transform.rs @@ -40,12 +40,6 @@ pub trait Transform: Sized { /// Transform a point using this transform. fn transform_point(&self, point: P) -> P; - /// Transform a vector as a point using this transform. - #[inline] - fn transform_as_point(&self, vec: P::Diff) -> P::Diff { - self.transform_point(P::from_vec(vec)).to_vec() - } - /// Combine this transform with another, yielding a new transformation /// which has the effects of both. fn concat(&self, other: &Self) -> Self; @@ -109,7 +103,7 @@ impl> Transform

for Decomposed Decomposed { scale: self.scale * other.scale, rot: self.rot.concat(&other.rot), - disp: self.transform_as_point(other.disp.clone()), + disp: self.disp + other.disp, } }