public class SegmentNode
extends java.lang.Object
implements java.lang.Comparable
SegmentString
s.Modifier and Type | Field and Description |
---|---|
Coordinate |
coord |
private boolean |
isInterior |
int |
segmentIndex |
private int |
segmentOctant |
private NodedSegmentString |
segString |
Constructor and Description |
---|
SegmentNode(NodedSegmentString segString,
Coordinate coord,
int segmentIndex,
int segmentOctant) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object obj) |
Coordinate |
getCoordinate()
Gets the
Coordinate giving the location of this node. |
boolean |
isEndPoint(int maxSegmentIndex) |
boolean |
isInterior() |
void |
print(java.io.PrintStream out) |
private final NodedSegmentString segString
public final Coordinate coord
public final int segmentIndex
private final int segmentOctant
private final boolean isInterior
public SegmentNode(NodedSegmentString segString, Coordinate coord, int segmentIndex, int segmentOctant)
public Coordinate getCoordinate()
Coordinate
giving the location of this node.public boolean isInterior()
public boolean isEndPoint(int maxSegmentIndex)
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
public void print(java.io.PrintStream out)