Skip to main content

limit

Function limit 

Source
pub fn limit(x: f64, y: f64, z: f64) -> f64
Expand description

Clamps x to the range spanned by y and z (whichever of y/z is smaller is the floor) — the “intermediate value of x, y, and z.”