com.vividsolutions.jump.algorithm
Class LengthToPoint
java.lang.Object
com.vividsolutions.jump.algorithm.LengthToPoint
public class LengthToPoint
- extends java.lang.Object
Computes the length along a LineString to the point on the line nearest a given point.
|
Constructor Summary |
LengthToPoint(com.vividsolutions.jts.geom.LineString line,
com.vividsolutions.jts.geom.Coordinate inputPt)
|
|
Method Summary |
double |
getLength()
|
static double |
length(com.vividsolutions.jts.geom.LineString line,
com.vividsolutions.jts.geom.Coordinate inputPt)
Computes the length along a LineString to the point on the line nearest a given point. |
static double |
lengthAlongSegment(com.vividsolutions.jts.geom.LineSegment seg,
com.vividsolutions.jts.geom.Coordinate pt)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LengthToPoint
public LengthToPoint(com.vividsolutions.jts.geom.LineString line,
com.vividsolutions.jts.geom.Coordinate inputPt)
lengthAlongSegment
public static double lengthAlongSegment(com.vividsolutions.jts.geom.LineSegment seg,
com.vividsolutions.jts.geom.Coordinate pt)
length
public static double length(com.vividsolutions.jts.geom.LineString line,
com.vividsolutions.jts.geom.Coordinate inputPt)
- Computes the length along a LineString to the point on the line nearest a given point.
getLength
public double getLength()