com.vividsolutions.jts.noding

Class SegmentNode

Implemented Interfaces:
Comparable

public class SegmentNode
extends java.lang.Object
implements Comparable

Represents an intersection point between two SegmentStrings.
Version:
1.7

Field Summary

Coordinate
coord
int
segmentIndex

Constructor Summary

SegmentNode(SegmentString segString, Coordinate coord, int segmentIndex, int segmentOctant)

Method Summary

int
compareTo(Object obj)
boolean
isEndPoint(int maxSegmentIndex)
boolean
isInterior()
void
print(PrintStream out)

Field Details

coord

public final Coordinate coord

segmentIndex

public final int segmentIndex

Constructor Details

SegmentNode

public SegmentNode(SegmentString segString,
                   Coordinate coord,
                   int segmentIndex,
                   int segmentOctant)

Method Details

compareTo

public int compareTo(Object obj)
Returns:
-1 this SegmentNode is located before the argument location

isEndPoint

public boolean isEndPoint(int maxSegmentIndex)

isInterior

public boolean isInterior()

print

public void print(PrintStream out)