pub trait IsClose<Rhs = Self> { // Required method fn is_close(&self, other: Self) -> bool; }
Trait for equivalence between two objects, up to a certain error tolerance.
tolerance
Primitive elements that compose those objects must implement IsClose trait to derive this trait.
IsClose
Return true if absolute value between two f32 is less than EPSILON
true
f32
EPSILON