Function me3_framework::overlay::epaint::emath::almost_equal
source · [−]Expand description
Return true when arguments are the same within some rounding error.
For instance almost_equal(x, x.to_degrees().to_radians(), f32::EPSILON)
should hold true for all x.
The epsilon
can be f32::EPSILON
to handle simple transforms (like degrees -> radians)
but should be higher to handle more complex transformations.