Update src/geometry/scale_conversion.rs

Co-authored-by: Sébastien Crozet <sebastien@crozet.re>
This commit is contained in:
Yuri6037 2021-10-24 21:52:35 +02:00 committed by GitHub
parent 866cabaa28
commit b8800ccd15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,9 +102,9 @@ where
fn from_superset_unchecked(
m: &OMatrix<T2, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>,
) -> Self {
let t = m.fixed_slice::<D, 1>(0, D);
let t = m.column().fixed_slice::<D, 1>(0, D).into_owned();
Self {
vector: crate::convert_unchecked(t.into_owned()),
vector: crate::convert_unchecked(t),
}
}
}