public class SegmentIntersector
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
int |
numTests |
Constructor | Description |
---|---|
SegmentIntersector(LineIntersector li,
boolean includeProper,
boolean recordIsolated) |
Modifier and Type | Method | Description |
---|---|---|
void |
addIntersections(Edge e0,
int segIndex0,
Edge e1,
int segIndex1) |
This method is called by clients of the EdgeIntersector class to test for and add
intersections for two segments of the edges being intersected.
|
Coordinate |
getProperIntersectionPoint() |
|
boolean |
hasIntersection() |
|
boolean |
hasProperInteriorIntersection() |
A proper interior intersection is a proper intersection which is not
contained in the set of boundary nodes set for this SegmentIntersector.
|
boolean |
hasProperIntersection() |
A proper intersection is an intersection which is interior to at least two
line segments.
|
static boolean |
isAdjacentSegments(int i1,
int i2) |
|
boolean |
isDone() |
|
void |
setBoundaryNodes(java.util.Collection bdyNodes0,
java.util.Collection bdyNodes1) |
|
void |
setIsDoneIfProperInt(boolean isDoneWhenProperInt) |
public SegmentIntersector(LineIntersector li, boolean includeProper, boolean recordIsolated)
public static boolean isAdjacentSegments(int i1, int i2)
public void setBoundaryNodes(java.util.Collection bdyNodes0, java.util.Collection bdyNodes1)
public void setIsDoneIfProperInt(boolean isDoneWhenProperInt)
public boolean isDone()
public Coordinate getProperIntersectionPoint()
null
if none was foundpublic boolean hasIntersection()
public boolean hasProperIntersection()
public boolean hasProperInteriorIntersection()
public void addIntersections(Edge e0, int segIndex0, Edge e1, int segIndex1)
Copyright © 2018. All rights reserved.