Function clamp_value_to_range

Source
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.