From 0ba23da4755fadbe7bef3144847b463c36be52f8 Mon Sep 17 00:00:00 2001 From: sebcrozet Date: Tue, 30 Oct 2018 07:54:26 +0100 Subject: [PATCH] Make transform_vector and transform_point public. --- src/base/cg.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/base/cg.rs b/src/base/cg.rs index 3367ac26..63586dc5 100644 --- a/src/base/cg.rs +++ b/src/base/cg.rs @@ -321,7 +321,7 @@ where DefaultAllocator: Allocator { /// Transforms the given vector, assuming the matrix `self` uses homogeneous coordinates. #[inline] - fn transform_vector( + pub fn transform_vector( &self, v: &VectorN>, ) -> VectorN> @@ -339,7 +339,11 @@ where DefaultAllocator: Allocator /// Transforms the given point, assuming the matrix `self` uses homogeneous coordinates. #[inline] - fn transform_point(&self, pt: &Point>) -> Point> { + pub fn transform_point( + &self, + pt: &Point>, + ) -> Point> + { let transform = self.fixed_slice::, DimNameDiff>(0, 0); let translation = self.fixed_slice::, U1>(0, D::dim() - 1); let normalizer = self.fixed_slice::>(D::dim() - 1, 0);