| java.lang.Object com.vividsolutions.jump.algorithm.LocatePoint
LocatePoint | public class LocatePoint (Code) | | Provides various ways of computing the actual value
of a point a given length along a line.
|
getIndex | public int getIndex()(Code) | | Returns the index of the segment containing the computed point
|
pointAlongSegment | public static Coordinate pointAlongSegment(LineSegment seg, double length)(Code) | | Computes the location of a point a given length along a
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.
Parameters: seg - the line segment Parameters: length - the length to the desired point the Coordinate of the desired point |
pointAlongSegment | public static Coordinate pointAlongSegment(Coordinate p0, Coordinate p1, double length)(Code) | | Computes the location of a point a given length along a line segment.
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.
Parameters: p0 - the first point of the line segment Parameters: p1 - the last point of the line segment Parameters: length - the length to the desired point the Coordinate of the desired point |
pointAlongSegmentByFraction | public static Coordinate pointAlongSegmentByFraction(Coordinate p0, Coordinate p1, double frac)(Code) | | Computes the location of a point a given fraction along a line segment.
If the fraction exceeds 1 the last point of the segment is returned.
If the fraction is negative the first point of the segment is returned.
Parameters: p0 - the first point of the line segment Parameters: p1 - the last point of the line segment Parameters: frac - the fraction of the segment to the desired point the Coordinate of the desired point |
|
|