public class SegmentNode extends Object implements Comparable
SegmentString
s.Modifier and Type | Field and Description |
---|---|
Coordinate |
coord |
int |
segmentIndex |
Constructor and Description |
---|
SegmentNode(NodedSegmentString segString,
Coordinate coord,
int segmentIndex,
int segmentOctant) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object obj) |
Coordinate |
getCoordinate()
Gets the
Coordinate giving the location of this node. |
boolean |
isEndPoint(int maxSegmentIndex) |
boolean |
isInterior() |
void |
print(PrintStream out) |
String |
toString() |
public final Coordinate coord
public final int segmentIndex
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(Object obj)
compareTo
in interface Comparable
public void print(PrintStream out)
Copyright © 2022. All rights reserved.