Class SegmentNode
java.lang.Object
org.locationtech.jts.noding.SegmentNode
- All Implemented Interfaces:
Comparable
Represents an intersection point between two
SegmentStrings.- Version:
- 1.7
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSegmentNode(NodedSegmentString segString, Coordinate coord, int segmentIndex, int segmentOctant) -
Method Summary
Modifier and TypeMethodDescriptionintGets theCoordinategiving the location of this node.booleanisEndPoint(int maxSegmentIndex) booleanvoidprint(PrintStream out) toString()
-
Field Details
-
coord
-
segmentIndex
public final int segmentIndex
-
-
Constructor Details
-
SegmentNode
public SegmentNode(NodedSegmentString segString, Coordinate coord, int segmentIndex, int segmentOctant)
-
-
Method Details
-
getCoordinate
Gets theCoordinategiving the location of this node.- Returns:
- the coordinate of the node
-
isInterior
public boolean isInterior() -
isEndPoint
public boolean isEndPoint(int maxSegmentIndex) -
compareTo
- Specified by:
compareToin 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
-
toString
-