pub fn remap_rect_x_coordinate(rect: &Rectangle, x_coord: f32) -> f32
Expand description

Remap an x-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.