Computes the orientation of 3 points
Tests if 3 points are oriented clockwise, counter-clockwise or colinear.
WARNING This module is deprecated. You should use robust-orientation instead.
var lr = require"left-right"console.loglr1 0 0 0 0 1//Prints out: -1
npm install left-right
Computes the orientation of
a,b,care 3 2d points, encoded as arrays
Returns One of the following values:
- 1 if
a,b,care counter clockwise oriented
- -1 if
- 0 if they are colinear
(c) 2013 Mikola Lysenko. MIT License