pub fn normalize_cursor_to_frame(
point: (f64, f64),
rect: (f64, f64, f64, f64),
) -> (f32, f32)Expand description
Normalize a global cursor point to [0, 1]² within the captured display
rect ((origin_x, origin_y, width, height)), top-left origin — the
[CursorSample] convention. Points outside the rect clamp to the edge; a
zero-size axis maps to 0.0. Pure.