com.vividsolutions.jts.algorithm.distance
Class DistanceToPoint
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DistanceToPoint
public DistanceToPoint()
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)