PolylineIntersector

public static class PolylineIntersector
Finds every intersection event between two polylines, treating both as open.

Fields

NoiseUlps

#
The slack allowed for floating point noise, in units in the last place of the largest coordinate in a test.
public const int NoiseUlps = 1024

Methods

ContinuesAcrossSeam

#
Decide whether the first and last overlap events are really one overlap continuing across the seam.
public static bool ContinuesAcrossSeam(
first,
The first event along the first polyline.
last,
The last event along the first polyline.
a,
First polyline.
b
Second polyline.
)
True if the last event carries on into the first across the seam.

ContinuesAcrossSecondSeam

#
Decide whether two consecutive overlap events along the first polyline are one overlap continuing across the seam of the second.
public static bool ContinuesAcrossSecondSeam(
earlier,
The event ending at the seam of the second polyline.
later,
The event starting at that seam.
b
Second polyline.
)
True if the earlier event carries on into the later one across the seam.

Intersect

#
Find all intersection events between two polylines.
public static PolylineIntersection[] Intersect(
a,
First polyline.
b,
Second polyline.
tolerance
Largest distance at which the polylines count as touching.
)
All events, sorted along the first polyline.

IsSeamDuplicate

#
Decide whether two point events are the same contact found twice on the seam of a closed polyline.
public static bool IsSeamDuplicate(
x,
One point event.
y,
Another point event.
a,
First polyline.
b
Second polyline.
)
True if both events are the same contact on a seam.