public class LengthToPoint
extends java.lang.Object
Constructor and Description |
---|
LengthToPoint(com.vividsolutions.jts.geom.LineString line,
com.vividsolutions.jts.geom.Coordinate inputPt) |
Modifier and Type | Method and Description |
---|---|
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) |
public LengthToPoint(com.vividsolutions.jts.geom.LineString line, com.vividsolutions.jts.geom.Coordinate inputPt)
public static double lengthAlongSegment(com.vividsolutions.jts.geom.LineSegment seg, com.vividsolutions.jts.geom.Coordinate pt)
public static double length(com.vividsolutions.jts.geom.LineString line, com.vividsolutions.jts.geom.Coordinate inputPt)
public double getLength()