Skip to main content

distance_to_triangle

Function distance_to_triangle 

Source
pub fn distance_to_triangle(p: [f64; 3], corners: [[f64; 3]; 3]) -> f64
Expand description

The distance from p to a triangle, in f64: for measuring a result exactly when f32 is not enough, as on long thin triangles, whose f32 distances are dominated by rounding.