Skip to main content

triangle_normal

Function triangle_normal 

Source
pub fn triangle_normal(a: [f32; 3], b: [f32; 3], c: [f32; 3]) -> [f32; 3]
Expand description

Compute the unit normal of triangle (a, b, c).

Returns the zero vector if the triangle is degenerate.