JTS Topology Suite version 1.12

com.vividsolutions.jts.algorithm.distance
Class DistanceToPoint

java.lang.Object
  extended by com.vividsolutions.jts.algorithm.distance.DistanceToPoint

public class DistanceToPoint
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
DistanceToPoint()
           
 
Method Summary
static void computeDistance(Geometry geom, Coordinate pt, PointPairDistance ptDist)
           
static void computeDistance(LineSegment segment, Coordinate pt, PointPairDistance ptDist)
           
static void computeDistance(LineString line, Coordinate pt, PointPairDistance ptDist)
           
static void computeDistance(Polygon poly, Coordinate pt, PointPairDistance ptDist)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistanceToPoint

public DistanceToPoint()
Method Detail

computeDistance

public static void computeDistance(Geometry geom,
                                   Coordinate pt,
                                   PointPairDistance ptDist)

computeDistance

public static void computeDistance(LineString line,
                                   Coordinate pt,
                                   PointPairDistance ptDist)

computeDistance

public static void computeDistance(LineSegment segment,
                                   Coordinate pt,
                                   PointPairDistance ptDist)

computeDistance

public static void computeDistance(Polygon poly,
                                   Coordinate pt,
                                   PointPairDistance ptDist)

JTS Topology Suite version 1.12