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 }