Clockwise checks the orientation of the points A, B, C relativly to direction. If we go from A to B and then to C we can apply the method of the screwdriver. If this direction show to the same side as the param direction, then we obtain true as result.
Returns true if the tree points are clockwise oriented
Unfortunatly we obtain the normal clockwise in 2D, if we take Direction=( 0 , 0, -1) as reference
Triangle t = new Triangle(new xyz(2,0,0), new xyz(0,2,0), new xyz(-2,0,0)); if (t.ClockWise(new xyz(0,0,1))) MessageBox.Show("ClockWise");