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.6

Field Summary

Coordinate
coord
double
dist
int
segmentIndex

Constructor Summary

SegmentNode(Coordinate coord, int segmentIndex, double dist)

Method Summary

int
compare(int segmentIndex, double dist)
int
compareTo(Object obj)
boolean
isEndPoint(int maxSegmentIndex)
void
print(PrintStream out)

Field Details

coord

public Coordinate coord

dist

public double dist

segmentIndex

public int segmentIndex

Constructor Details

SegmentNode

public SegmentNode(Coordinate coord,
                   int segmentIndex,
                   double dist)

Method Details

compare

public int compare(int segmentIndex,
                   double dist)
Returns:
-1 this EdgeIntersection is located before the argument location

compareTo

public int compareTo(Object obj)

isEndPoint

public boolean isEndPoint(int maxSegmentIndex)

print

public void print(PrintStream out)