Function piston_window::math::abs_transform

source ยท
pub fn abs_transform<T>(w: T, h: T) -> [[T; 3]; 2]
where T: Float,
Expand description

Transforms from normalized to absolute coordinates.

Computes absolute transform from width and height of viewport. In absolute coordinates, the x axis points to the right, and the y axis points down on the screen.