mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-04 09:58:27 +00:00
Reduce reliance on nalgebra
This commit is contained in:
parent
faec10f6b8
commit
57ee42240f
@ -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 }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user