diff --git a/src/geometry/scale_conversion.rs b/src/geometry/scale_conversion.rs index 893983a4..68b69da5 100644 --- a/src/geometry/scale_conversion.rs +++ b/src/geometry/scale_conversion.rs @@ -102,9 +102,9 @@ where fn from_superset_unchecked( m: &OMatrix, U1>, DimNameSum, U1>>, ) -> Self { - let t = m.fixed_slice::(0, D).into_owned(); + let v = m.fixed_slice::(0, 0).into_owned().diagonal(); Self { - vector: crate::convert_unchecked(t), + vector: crate::convert_unchecked(v), } } }