The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Unit: SDL_math1
Class: None
Declaration: function CcwTriangle (p1, p2, p3: TPointDouble): integer;

The function CcwTriangle tests whether the triangle corners p1, p2 and p3 are in clockwise order. The function returns -1 if the points are in counterclockwise order, +1 if they are clockwise, or 0 if the three points are collinear.

Last Update: 2017-Apr-19