Refactor to prepare for follow-on change

This commit is contained in:
Hanno Braun 2023-06-19 10:49:57 +02:00
parent fb6febdc57
commit 9e22838fca

View File

@ -31,7 +31,8 @@ impl<const D: usize> Vector<D> {
/// Construct a `Vector` from an nalgebra vector
pub fn from_na(vector: nalgebra::SVector<f64, D>) -> Self {
Self::from_components_f64(vector.into())
let components: [f64; D] = vector.into();
Self::from(components)
}
/// Convert the vector into an nalgebra vector