mirror of
https://github.com/hannobraun/Fornjot
synced 2025-07-29 21:36:11 +00:00
Use Epsilon
of underlying type in approx
impls
This commit is contained in:
parent
a048f72bdd
commit
708eaa33d3
@ -166,7 +166,7 @@ impl<const D: usize> ops::Mul<f64> for Point<D> {
|
||||
}
|
||||
|
||||
impl<const D: usize> AbsDiffEq for Point<D> {
|
||||
type Epsilon = <f64 as AbsDiffEq>::Epsilon;
|
||||
type Epsilon = <Vector<D> as AbsDiffEq>::Epsilon;
|
||||
|
||||
fn default_epsilon() -> Self::Epsilon {
|
||||
f64::default_epsilon()
|
||||
|
@ -169,7 +169,7 @@ impl<const D: usize> ops::Div<Scalar> for Vector<D> {
|
||||
}
|
||||
|
||||
impl<const D: usize> AbsDiffEq for Vector<D> {
|
||||
type Epsilon = <f64 as AbsDiffEq>::Epsilon;
|
||||
type Epsilon = <Scalar as AbsDiffEq>::Epsilon;
|
||||
|
||||
fn default_epsilon() -> Self::Epsilon {
|
||||
f64::default_epsilon()
|
||||
|
Loading…
x
Reference in New Issue
Block a user