|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jump.algorithm.LocatePoint
public class LocatePoint
Provides various ways of computing the actual value of a point a given length along a line.
| Constructor Summary | |
|---|---|
LocatePoint(com.vividsolutions.jts.geom.LineString line,
double length)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocatePoint(com.vividsolutions.jts.geom.LineString line,
double length)
| Method Detail |
|---|
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 point
Coordinate of the desired point
public 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 point
Coordinate of the desired point
public 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 point
Coordinate of the desired point
public 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||