orient2dfast

Function orient2dfast 

Source
pub fn orient2dfast(ax: f64, ay: f64, bx: f64, by: f64, cx: f64, cy: f64) -> f64
Expand description

returns a positive value if the points a, b, and c occur in counterclockwise order (c lies to the left of the directed line defined by points a and b).

ยงReturns

  • a negative value if they occur in clockwise order (c lies to the right of the directed line ab).
  • zero if they are collinear.