pub(crate) fn clamp_value_to_range(x: f64, range: RangeInclusive<f64>) -> f64
Expand description
Clamp the given value with careful handling of negative zero, and other corner cases.
pub(crate) fn clamp_value_to_range(x: f64, range: RangeInclusive<f64>) -> f64
Clamp the given value with careful handling of negative zero, and other corner cases.