Reduce reliance on nalgebra

This commit is contained in:
Hanno Braun 2025-03-21 22:43:47 +01:00
parent 84341c01be
commit 034ed617c9

View File

@ -374,7 +374,9 @@ where
type Output = Self;
fn div(self, scalar: S) -> Self::Output {
self.to_na().div(scalar.into().into_f64()).into()
let scalar = scalar.into();
let components = self.components.map(|component| component / scalar);
Self { components }
}
}