Trait cavalier_contours::core::traits::FuzzyEq
source · pub trait FuzzyEq: Sized + Copy {
// Required methods
fn fuzzy_epsilon() -> Self;
fn fuzzy_eq_eps(&self, other: Self, fuzzy_epsilon: Self) -> bool;
fn fuzzy_eq_zero_eps(&self, fuzzy_epsilon: Self) -> bool;
// Provided methods
fn fuzzy_eq(&self, other: Self) -> bool { ... }
fn fuzzy_eq_zero(&self) -> bool { ... }
}
Required Methods§
fn fuzzy_epsilon() -> Self
sourcefn fuzzy_eq_eps(&self, other: Self, fuzzy_epsilon: Self) -> bool
fn fuzzy_eq_eps(&self, other: Self, fuzzy_epsilon: Self) -> bool
Returns true
is this object is approximately equal to the other one, using
a provided epsilon value.
fn fuzzy_eq_zero_eps(&self, fuzzy_epsilon: Self) -> bool
Provided Methods§
sourcefn fuzzy_eq(&self, other: Self) -> bool
fn fuzzy_eq(&self, other: Self) -> bool
Returns true
is this object is approximately equal to the other one, using
the implemented FuzzyEq::fuzzy_epsilon value.
fn fuzzy_eq_zero(&self) -> bool
Object Safety§
This trait is not object safe.