public class LocatePoint
extends java.lang.Object
| Constructor and Description | 
|---|
LocatePoint(com.vividsolutions.jts.geom.LineString line,
           double length)  | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getIndex()
Returns the index of the segment containing the computed point 
 | 
com.vividsolutions.jts.geom.Coordinate | 
getPoint()  | 
static com.vividsolutions.jts.geom.Coordinate | 
pointAlongLine(com.vividsolutions.jts.geom.LineString line,
              double length)
Computes the  
Coordinate of the point a given length
 along a LineString. | 
static com.vividsolutions.jts.geom.Coordinate | 
pointAlongSegment(com.vividsolutions.jts.geom.Coordinate p0,
                 com.vividsolutions.jts.geom.Coordinate p1,
                 double length)
Computes the location of a point a given length along a line segment. 
 | 
static com.vividsolutions.jts.geom.Coordinate | 
pointAlongSegment(com.vividsolutions.jts.geom.LineSegment seg,
                 double length)
Computes the location of a point a given length along a  
LineSegment. | 
static com.vividsolutions.jts.geom.Coordinate | 
pointAlongSegmentByFraction(com.vividsolutions.jts.geom.Coordinate p0,
                           com.vividsolutions.jts.geom.Coordinate p1,
                           double frac)
Computes the location of a point a given fraction along a line segment. 
 | 
public LocatePoint(com.vividsolutions.jts.geom.LineString line,
           double length)
public static com.vividsolutions.jts.geom.Coordinate pointAlongSegment(com.vividsolutions.jts.geom.LineSegment seg,
                                                       double length)
LineSegment.
 If the length exceeds the length of the line segment the last
 point of the segment is returned.
 If the length is negative the first point
 of the segment is returned.seg - the line segmentlength - the length to the desired pointCoordinate of the desired pointpublic static com.vividsolutions.jts.geom.Coordinate pointAlongSegment(com.vividsolutions.jts.geom.Coordinate p0,
                                                       com.vividsolutions.jts.geom.Coordinate p1,
                                                       double length)
p0 - the first point of the line segmentp1 - the last point of the line segmentlength - the length to the desired pointCoordinate of the desired pointpublic static com.vividsolutions.jts.geom.Coordinate pointAlongSegmentByFraction(com.vividsolutions.jts.geom.Coordinate p0,
                                                                 com.vividsolutions.jts.geom.Coordinate p1,
                                                                 double frac)
p0 - the first point of the line segmentp1 - the last point of the line segmentfrac - the fraction of the segment to the desired pointCoordinate of the desired pointpublic static com.vividsolutions.jts.geom.Coordinate pointAlongLine(com.vividsolutions.jts.geom.LineString line,
                                                    double length)
Coordinate of the point a given length
 along a LineString.line - length - Coordinate of the desired pointpublic com.vividsolutions.jts.geom.Coordinate getPoint()
public int getIndex()