Skip to main content

validate_triangle

Function validate_triangle 

Source
pub fn validate_triangle(p: &[[f64; 2]; 3]) -> Result<(), &'static str>
Expand description

A triangle needs distinct nodes, area above tolerance, and counter-clockwise order.