Reduce reliance on nalgebra

This commit is contained in:
Hanno Braun 2025-03-21 22:46:36 +01:00
parent faec10f6b8
commit 57ee42240f

View File

@ -354,7 +354,9 @@ where
type Output = Self;
fn mul(self, scalar: S) -> Self::Output {
self.to_na().mul(scalar.into().into_f64()).into()
let scalar = scalar.into();
let components = self.components.map(|v| v * scalar);
Self { components }
}
}