Class PolylinePosition

Package world.mappable.mapkit.geometry

java.lang.Object
    ↳ world.mappable.mapkit.geometry.PolylinePosition

class PolylinePosition implements Serializable

The position on a polyline.

Summary

Constructors

Signature and Description

PolylinePosition(int segmentIndex,
                 double segmentPosition)

PolylinePosition()
Use constructor with parameters in your code.

Methods

Type and modifiers

Method and Description

int

getSegmentIndex()
Zero-based index of the polyline segment.

double

getSegmentPosition()
Position in the specified segment.

void

serialize(world.mappable.runtime.bindings.Archive archive)

Constuctors

PolylinePosition

PolylinePosition(int segmentIndex,
                 double segmentPosition)


PolylinePosition

PolylinePosition()

Use constructor with parameters in your code.

This one is for bindings only!


Methods

getSegmentIndex

int getSegmentIndex()

Zero-based index of the polyline segment.


getSegmentPosition

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

@Override
void serialize(world.mappable.runtime.bindings.Archive archive)