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
Fields -
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) 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 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
-
toString
-