Skip to main content

get_axis_aligned_projection

Function get_axis_aligned_projection 

Source
pub fn get_axis_aligned_projection(normal: Vec3) -> Proj2x3
Expand description

Returns a projection matrix that drops the largest-magnitude axis of normal, producing a 2D view aligned with the face plane.

Mirrors GetAxisAlignedProjection in src/shared.h.