pub fn approx_eq_eps(a: f32, b: f32, epsilon: f32) -> bool
Expand description
Performs an approximate equality comparison between two floats with a custom tolerance.
ยงExamples
use khora_core::math::approx_eq_eps;
assert!(approx_eq_eps(0.001, 0.002, 1e-2));
assert!(!approx_eq_eps(0.001, 0.002, 1e-4));