Class PolylinePosition
com.yandex.mapkit.geometry
java.lang.Object ⇽ PolylinePosition
public class PolylinePosition
The position on a polyline.
Constructors
PolylinePosition(int segmentIndex, double segmentPosition) | |
PolylinePosition() | Use constructor with parameters in your code. |
PolylinePosition(int segmentIndex, double segmentPosition) | |
PolylinePosition() | Use constructor with parameters in your code. |
Methods
int | getSegmentIndex() | Zero-based index of the polyline segment. |
double | getSegmentPosition() | Position in the specified segment. |
void | serialize(Archive archive) |
int | getSegmentIndex() | Zero-based index of the polyline segment. |
double | getSegmentPosition() | Position in the specified segment. |
void | serialize(Archive archive) |
Constructor Detail
PolylinePosition
public PolylinePosition (int segmentIndex, double segmentPosition)
PolylinePosition
public PolylinePosition ()
Use constructor with parameters in your code.
This one is for bindings only!Method Detail
getSegmentIndex
public int getSegmentIndex ()
Zero-based index of the polyline segment.
getSegmentPosition
public double getSegmentPosition ()
Position in the specified segment.
Possible values: from 0 to 1, where 0 is the start of the segment and 1 is the end of it.serialize
public void serialize (Archive archive)