public class SegmentIntersector extends Object
Modifier and Type | Field and Description |
---|---|
int |
numTests |
Constructor and Description |
---|
SegmentIntersector(LineIntersector li,
boolean includeProper,
boolean recordIsolated) |
Modifier and Type | Method and 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(Collection bdyNodes0,
Collection bdyNodes1) |
public SegmentIntersector(LineIntersector li, boolean includeProper, boolean recordIsolated)
public static boolean isAdjacentSegments(int i1, int i2)
public void setBoundaryNodes(Collection bdyNodes0, Collection bdyNodes1)
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 © 2022. All rights reserved.