Function nih_plug_iced::widgets::util::remap_rect_y_coordinate
source · pub fn remap_rect_y_coordinate(rect: &Rectangle, y_coord: f32) -> f32Expand description
Remap a y-coordinate to a [0, 1] value within this rectangle. The value will be clamped to
[0, 1] if it isn’t already in that range.