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);