pub fn normalize_to_rect(pos: Pos2, rect: Rect) -> (f32, f32)
Convert a screen-space position to normalized (0..1) coordinates within a rect.