Skip to main content

clamp_double

Function clamp_double 

Source
pub fn clamp_double(min: f64, max: f64, input: f64) -> f64
Expand description

input limited to min..=max. Unlike f64::clamp this accepts min > max (returning min for anything below it), which the 2025 color spec relies on and which must not panic.