mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-28 10:05:52 +00:00
Refactor to prepare for follow-on change
This commit is contained in:
parent
fb6febdc57
commit
9e22838fca
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user