Function egui::widgets::drag_value::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.