Sweep Line algorithm
Constructor
polygon rings
Add the event to the sweep line
event
added segment
Find the existing event segment
segment
Determine if the two segments intersect
segment 1
segment 2
true if intersection, false if not
Remove the segment from the sweep line
XY order of two points
point 1
point 2
+1 if p1 > p2, -1 if p1 < p2, 0 if equal
Get the segment y value at the x location by calculating the line slope
current point x value
segment y value
Generated using TypeDoc
Sweep Line algorithm