pub fn remap_rect_y_coordinate(rect: &Rectangle, y_coord: f32) -> f32
Expand 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.