pub fn clamp_float<F: Float>(value: F, (min, max): (F, F)) -> F
Constrain a float value within a minimum and maximum range (inclusive).