com.vividsolutions.jump.algorithm
Class PointPairDistance

java.lang.Object
  extended by com.vividsolutions.jump.algorithm.PointPairDistance

public class PointPairDistance
extends java.lang.Object

Contains a pair of points and the distance between them. Provides methods to update with a new point pair with either maximum or minimum distance.


Constructor Summary
PointPairDistance()
           
 
Method Summary
 com.vividsolutions.jts.geom.Coordinate getCoordinate(int i)
           
 com.vividsolutions.jts.geom.Coordinate[] getCoordinates()
           
 double getDistance()
           
 void initialize()
           
 void initialize(com.vividsolutions.jts.geom.Coordinate p0, com.vividsolutions.jts.geom.Coordinate p1)
           
 void setMaximum(com.vividsolutions.jts.geom.Coordinate p0, com.vividsolutions.jts.geom.Coordinate p1)
           
 void setMaximum(PointPairDistance ptDist)
           
 void setMinimum(com.vividsolutions.jts.geom.Coordinate p0, com.vividsolutions.jts.geom.Coordinate p1)
           
 void setMinimum(PointPairDistance ptDist)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PointPairDistance

public PointPairDistance()
Method Detail

initialize

public void initialize()

initialize

public void initialize(com.vividsolutions.jts.geom.Coordinate p0,
                       com.vividsolutions.jts.geom.Coordinate p1)

getDistance

public double getDistance()

getCoordinates

public com.vividsolutions.jts.geom.Coordinate[] getCoordinates()

getCoordinate

public com.vividsolutions.jts.geom.Coordinate getCoordinate(int i)

setMaximum

public void setMaximum(PointPairDistance ptDist)

setMaximum

public void setMaximum(com.vividsolutions.jts.geom.Coordinate p0,
                       com.vividsolutions.jts.geom.Coordinate p1)

setMinimum

public void setMinimum(PointPairDistance ptDist)

setMinimum

public void setMinimum(com.vividsolutions.jts.geom.Coordinate p0,
                       com.vividsolutions.jts.geom.Coordinate p1)