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....



CcwTriangle


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: 2023-Feb-06