From f465928085764115b85ac1eab4a36ad166c204ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Mon, 26 Aug 2013 17:39:25 +0200 Subject: [PATCH] Fix Transform adaptor ToHomogeneous implementation. --- src/adaptors/transform.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/adaptors/transform.rs b/src/adaptors/transform.rs index 91aa6cc7..9985fcad 100644 --- a/src/adaptors/transform.rs +++ b/src/adaptors/transform.rs @@ -277,7 +277,7 @@ Inv for Transform { } } -impl, M2: Dim + Column, V: Clone> +impl, M2: Dim + Column, V: ToHomogeneous + Clone, V2> ToHomogeneous for Transform { fn to_homogeneous(&self) -> M2 { let mut res = self.submat.to_homogeneous(); @@ -285,7 +285,7 @@ ToHomogeneous for Transform { // copy the translation let dim = Dim::dim::(); - res.set_column(dim - 1, self.subtrans.clone()); + res.set_column(dim - 1, self.subtrans.to_homogeneous()); res }