Skip to main content

face_normal

Function face_normal 

pub fn face_normal(vertices: [[f32; 3]; 3]) -> [f32; 3]
Expand description

The hit triangle’s unit face normal as Intersect gives it: (b − a) × (c − a) scaled by 1 / sqrtf(y² + x² + z²) (left as it is when that length is zero).