preset_xy_to_clip

Function preset_xy_to_clip 

Source
pub fn preset_xy_to_clip(x: f64, y: f64) -> [f32; 2]
Expand description

Convert MD2 preset-space (x, y) (origin top-left, range [0, 1]) to clip-space (x', y') (origin centre, range [-1, 1], Y-up). Same convention as custom_wave::preset_xy_to_clip.