pub fn uv_to_logical(
u: f32,
v: f32,
logical_width: f32,
logical_height: f32,
) -> PointExpand description
Converts quad UV into top-left-origin logical UI coordinates.
Both axes are clamped to the inclusive logical bounds and V is inverted.
ยงExamples
use ailloli_ui_openxr::math::uv_to_logical;
let point = uv_to_logical(0.25, 0.75, 800.0, 600.0);
assert_eq!((point.x, point.y), (200.0, 150.0));