mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-04 18:08:26 +00:00
Reduce reliance on nalgebra
This commit is contained in:
parent
84341c01be
commit
034ed617c9
@ -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 }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user