TriangulationUtilOrient2d Method |
Determines the orientation of three points.
Namespace: Poly2TriAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
Remarks
Formula to calculate signed area:
Positive if CCW,
negative if CW,
0 if collinear.
A[P1,P2,P3] = (x1*y2 - y1*x2) + (x2*y3 - y2*x3) + (x3*y1 - y3*x1)
= (x1-x3)*(y2-y3) - (y1-y3)*(x2-x3)
See Also