From 85bfae53900d0b5415a8375d881875765aa49cdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jochen=20G=C3=B6rtler?= Date: Tue, 20 Nov 2018 09:22:01 +0100 Subject: [PATCH] RFC: Add comment in `Rotation::to_homogeneous()` --- src/geometry/rotation.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/geometry/rotation.rs b/src/geometry/rotation.rs index f53668c7..5a4e4723 100644 --- a/src/geometry/rotation.rs +++ b/src/geometry/rotation.rs @@ -201,6 +201,9 @@ where DefaultAllocator: Allocator D: DimNameAdd, DefaultAllocator: Allocator, DimNameSum>, { + // We could use `MatrixN::to_homogeneous()` here, but that would imply + // adding the additional traits `DimAdd` and `IsNotStaticOne`. Maybe + // these things will get nicer once specialization lands in Rust. let mut res = MatrixN::>::identity(); res.fixed_slice_mut::(0, 0).copy_from(&self.matrix);