Function piston_window::math::abs_transform[][src]

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

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.