com.vividsolutions.jump.algorithm
Class EuclideanDistanceToPoint

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

public class EuclideanDistanceToPoint
extends java.lang.Object

Computes the Euclidean distance (L2 metric) from a Point to a Geometry. Also computes two points which are separated by the distance.


Constructor Summary
EuclideanDistanceToPoint()
           
 
Method Summary
static void computeDistance(com.vividsolutions.jts.geom.Geometry geom, com.vividsolutions.jts.geom.Coordinate pt, PointPairDistance ptDist)
           
static void computeDistance(com.vividsolutions.jts.geom.LineSegment segment, com.vividsolutions.jts.geom.Coordinate pt, PointPairDistance ptDist)
           
static void computeDistance(com.vividsolutions.jts.geom.LineString line, com.vividsolutions.jts.geom.Coordinate pt, PointPairDistance ptDist)
           
static void computeDistance(com.vividsolutions.jts.geom.Polygon poly, com.vividsolutions.jts.geom.Coordinate pt, PointPairDistance ptDist)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EuclideanDistanceToPoint

public EuclideanDistanceToPoint()
Method Detail

computeDistance

public static void computeDistance(com.vividsolutions.jts.geom.Geometry geom,
                                   com.vividsolutions.jts.geom.Coordinate pt,
                                   PointPairDistance ptDist)

computeDistance

public static void computeDistance(com.vividsolutions.jts.geom.LineString line,
                                   com.vividsolutions.jts.geom.Coordinate pt,
                                   PointPairDistance ptDist)

computeDistance

public static void computeDistance(com.vividsolutions.jts.geom.LineSegment segment,
                                   com.vividsolutions.jts.geom.Coordinate pt,
                                   PointPairDistance ptDist)

computeDistance

public static void computeDistance(com.vividsolutions.jts.geom.Polygon poly,
                                   com.vividsolutions.jts.geom.Coordinate pt,
                                   PointPairDistance ptDist)