public class MaximalNearestSubline extends Object
An exact computation of the MNS would require computing a line Voronoi. For this reason, the algorithm used in this class is heuristic-based. It may compute a geometry which is shorter than the actual MNS.
| Constructor and Description |
|---|
MaximalNearestSubline(LineString a,
LineString b)
|
| Modifier and Type | Method and Description |
|---|---|
LineStringLocation[] |
getInterval()
Computes the interval (range) containing the Maximal Nearest Subline.
|
static LineString |
getMaximalNearestSubline(LineString a,
LineString b) |
static LineString |
getSubline(LineString line,
LineStringLocation start,
LineStringLocation end) |
public MaximalNearestSubline(LineString a, LineString b)
a - the LineString on which to compute the sublineb - the LineString to compute the subline relative topublic static LineString getMaximalNearestSubline(LineString a, LineString b)
public static LineString getSubline(LineString line, LineStringLocation start, LineStringLocation end)
public LineStringLocation[] getInterval()
ACopyright © 2015 Revolution Systems Inc.. All rights reserved.