public class SimpleMCSweepLineIntersector extends EdgeSetIntersector
| Constructor and Description |
|---|
SimpleMCSweepLineIntersector()
A SimpleMCSweepLineIntersector creates monotone chains from the edges
and compares them using a simple sweep-line along the x-axis.
|
| Modifier and Type | Method and Description |
|---|---|
void |
computeIntersections(List edges0,
List edges1,
SegmentIntersector si)
Computes all mutual intersections between two sets of edges.
|
void |
computeIntersections(List edges,
SegmentIntersector si,
boolean testAllSegments)
Computes all self-intersections between edges in a set of edges,
allowing client to choose whether self-intersections are computed.
|
public SimpleMCSweepLineIntersector()
public void computeIntersections(List edges, SegmentIntersector si, boolean testAllSegments)
EdgeSetIntersectorcomputeIntersections in class EdgeSetIntersectoredges - a list of edges to test for intersectionssi - the SegmentIntersector to usetestAllSegments - true if self-intersections are to be tested as wellpublic void computeIntersections(List edges0, List edges1, SegmentIntersector si)
EdgeSetIntersectorcomputeIntersections in class EdgeSetIntersectorCopyright © 2020. All rights reserved.