A 2d triangle orientation test using exact arithmetic.

Namespace:  ceometric.ComputationalGeometry
Assembly:  ceometric.ComputationalGeometry (in ceometric.ComputationalGeometry.dll) Version: 2.4.0.0 (2.4.0.0)

Syntax

C#
public static double Orientatation2dExact(
	Triangle triangle
)
Visual Basic (Declaration)
Public Shared Function Orientatation2dExact ( _
	triangle As Triangle _
) As Double
Visual C++
public:
static double Orientatation2dExact(
	Triangle^ triangle
)

Parameters

triangle
Type: ceometric.VectorGeometry..::.Triangle
A 2d triangle.

Return Value

This test is
  • positive if the triangle is oriented counterclockwise.
  • zero if all triangle points are collinear.
  • negative if the triangle is oriented clockwise.

See Also