public class SimpleMCSweepLineIntersector extends EdgeSetIntersector
| Constructor | 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 | Description |
|---|---|---|
void |
computeIntersections(java.util.List edges0,
java.util.List edges1,
SegmentIntersector si) |
Computes all mutual intersections between two sets of edges.
|
void |
computeIntersections(java.util.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(java.util.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(java.util.List edges0,
java.util.List edges1,
SegmentIntersector si)
EdgeSetIntersectorcomputeIntersections in class EdgeSetIntersectorCopyright © 2018. All rights reserved.