From 8518ce78e8e2391d1ccd0cd49b4d2e401d9e7c6a Mon Sep 17 00:00:00 2001 From: Brendan Zabarauskas Date: Thu, 12 May 2016 08:12:34 +1000 Subject: [PATCH] Remove transforma_as_point method --- src/transform.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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, } }