Skip to main content

orient2d

Function orient2d 

Source
pub fn orient2d(a: Point2, b: Point2, c: Point2) -> f64
Expand description

Compute the exact orientation determinant of the triangle (a, b, c).

Returns a positive value if the points are counter-clockwise, negative if clockwise, and zero if collinear.