com.vividsolutions.jts.noding
Class SegmentNode

java.lang.Object
  extended bycom.vividsolutions.jts.noding.SegmentNode
All Implemented Interfaces:
java.lang.Comparable

public class SegmentNode
extends java.lang.Object
implements java.lang.Comparable

Represents an intersection point between two SegmentStrings.

Version:
1.4.0

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(java.lang.Object obj)
           
 boolean isEndPoint(int maxSegmentIndex)
           
 void print(java.io.PrintStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

coord

public Coordinate coord

segmentIndex

public int segmentIndex

dist

public double dist
Constructor Detail

SegmentNode

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

compare

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

isEndPoint

public boolean isEndPoint(int maxSegmentIndex)

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable

print

public void print(java.io.PrintStream out)