std-ccw | ![]() |
STD-CCW
returns either 0, 1 or -1.
1 if the triangle p0 p1 p2 is ordered counterclockwise (mathematically positive),
-1 if it's clockwise or if p0 is between p1 and p2 (on the segment)
0 if p2 is on the segment between p0 and p1
p0, p1, p2: 2d or 3d points
0, 1 or -1
None.
(std-require 'STDPOINT)
Defined in STDPOINT since v0.4008.