Package org.locationtech.jts.noding
Class SegmentNode
java.lang.Object
org.locationtech.jts.noding.SegmentNode
- All Implemented Interfaces:
Comparable
Represents an intersection point between two
SegmentString
s.- Version:
- 1.7
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Coordinate
private final boolean
final int
private final int
private final NodedSegmentString
-
Constructor Summary
ConstructorsConstructorDescriptionSegmentNode
(NodedSegmentString segString, Coordinate coord, int segmentIndex, int segmentOctant) -
Method Summary
Modifier and TypeMethodDescriptionint
Gets theCoordinate
giving the location of this node.boolean
isEndPoint
(int maxSegmentIndex) boolean
void
print
(PrintStream out)
-
Field Details
-
segString
-
coord
-
segmentIndex
public final int segmentIndex -
segmentOctant
private final int segmentOctant -
isInterior
private final boolean isInterior
-
-
Constructor Details
-
SegmentNode
public SegmentNode(NodedSegmentString segString, Coordinate coord, int segmentIndex, int segmentOctant)
-
-
Method Details
-
getCoordinate
Gets theCoordinate
giving the location of this node.- Returns:
- the coordinate of the node
-
isInterior
public boolean isInterior() -
isEndPoint
public boolean isEndPoint(int maxSegmentIndex) -
compareTo
- Specified by:
compareTo
in interfaceComparable
- Returns:
- -1 this SegmentNode is located before the argument location; 0 this SegmentNode is at the argument location; 1 this SegmentNode is located after the argument location
-
print
-