Package org.locationtech.jts.noding
Class SegmentNode
- java.lang.Object
-
- org.locationtech.jts.noding.SegmentNode
-
- All Implemented Interfaces:
Comparable
public class SegmentNode extends Object implements Comparable
Represents an intersection point between twoSegmentStrings.- Version:
- 1.7
-
-
Field Summary
Fields Modifier and Type Field Description CoordinatecoordintsegmentIndex
-
Constructor Summary
Constructors Constructor Description SegmentNode(NodedSegmentString segString, Coordinate coord, int segmentIndex, int segmentOctant)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Object obj)CoordinategetCoordinate()Gets theCoordinategiving the location of this node.booleanisEndPoint(int maxSegmentIndex)booleanisInterior()voidprint(PrintStream out)
-
-
-
Field Detail
-
coord
public final Coordinate coord
-
segmentIndex
public final int segmentIndex
-
-
Constructor Detail
-
SegmentNode
public SegmentNode(NodedSegmentString segString, Coordinate coord, int segmentIndex, int segmentOctant)
-
-
Method Detail
-
getCoordinate
public Coordinate 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
public int compareTo(Object obj)
- 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
public void print(PrintStream out)
-
-