An NDoc Documented Class Library

Triangle.ClockWise Method 

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.

public bool ClockWise(
   xyz direction
);

Parameters

direction
The direction for the check of Clockwise

Return Value

Returns true if the tree points are clockwise oriented

Remarks

Unfortunatly we obtain the normal clockwise in 2D, if we take Direction=( 0 , 0, -1) as reference

Example

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");

See Also

Triangle Class | Minais.Drawing3d.Math Namespace