public class LineStringLocation extends Object implements Comparable<LineStringLocation>
LineString.| Constructor and Description |
|---|
LineStringLocation(LineString line,
int segmentIndex,
double segmentFraction) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
static int |
compareLocationValues(int segmentIndex0,
double segmentFraction0,
int segmentIndex1,
double segmentFraction1) |
int |
compareTo(LineStringLocation other)
Compares this object with the specified object for order.
|
Point |
getCoordinate() |
LineString |
getLine() |
double |
getSegmentFraction() |
int |
getSegmentIndex() |
boolean |
isFirst() |
boolean |
isLast() |
boolean |
isVertex() |
static Point |
pointAlongSegmentByFraction(Point p0,
Point p1,
double frac)
Computes the location of a point a given length along a line segment.
|
public LineStringLocation(LineString line, int segmentIndex, double segmentFraction)
public static int compareLocationValues(int segmentIndex0,
double segmentFraction0,
int segmentIndex1,
double segmentFraction1)
public static Point pointAlongSegmentByFraction(Point p0, Point p1, double frac)
p0 - the first point of the line segmentp1 - the last point of the line segmentlength - the length to the desired pointCoordinates of the desired pointpublic int compareTo(LineStringLocation other)
compareTo in interface Comparable<LineStringLocation>o - the LineStringLocation with which this
Coordinate is being comparedLineStringLocation is less than, equal to, or greater
than the specified LineStringLocationpublic Point getCoordinate()
public LineString getLine()
public double getSegmentFraction()
public int getSegmentIndex()
public boolean isFirst()
public boolean isLast()
public boolean isVertex()
Copyright © 2015 Revolution Systems Inc.. All rights reserved.