Skip to main content

ndc_to_canvas

Function ndc_to_canvas 

Source
pub fn ndc_to_canvas(
    ndc_x: f32,
    ndc_y: f32,
    canvas_w: f32,
    canvas_h: f32,
) -> [f32; 2]
Expand description

NDC xy → canvas pixels (origin top-left).