An exact arithmetic 2d edge intersection test.

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


public static double IntersectsExact(
	Edge e1,
	Edge e2
Visual Basic (Declaration)
Public Shared Function IntersectsExact ( _
	e1 As Edge, _
	e2 As Edge _
) As Double
Visual C++
static double IntersectsExact(
	Edge^ e1, 
	Edge^ e2

Return Value

  • 2 if the edges intersect in a vertex (share a vertex).
  • 1 if the edges intersect.
  • 0 if one edge touches the other with its start or end vertex.
  • -1 if the edges do not intersect.
  • NaN if the edges are collinear.

See Also