MMKPolylineUtils

@interface MMKPolylineUtils : NSObject

Undocumented

Summary

Class methods

+ (nonnull NSArray<MMKPolylinePosition *> *)
    positionsOfForkWithFirstPolyline:(nonnull MMKPolyline *)firstPolyline
               firstPolylinePosition:
                   (nonnull MMKPolylinePosition *)firstPolylinePosition
                      secondPolyline:(nonnull MMKPolyline *)secondPolyline
              secondPolylinePosition:
                  (nonnull MMKPolylinePosition *)secondPolylinePosition;

The position of the fork on the road

+ (nonnull MMKPolylinePosition *)
    advancePolylinePositionWithPolyline:(nonnull MMKPolyline *)polyline
                               position:(nonnull MMKPolylinePosition *)position
                               distance:(double)distance;

The position of the polyline

+ (nonnull MMKPoint *)
    pointByPolylinePositionWithGeometry:(nonnull MMKPolyline *)geometry
                               position:(nonnull MMKPolylinePosition *)position;

The point in the polyline

+ (double)
    distanceBetweenPolylinePositionsWithPolyline:(nonnull MMKPolyline *)polyline
                                            from:(nonnull MMKPolylinePosition *)
                                                     from
                                              to:(nonnull MMKPolylinePosition *)
                                                     to;

Undocumented

+ (nonnull MMKPolylineIndex *)createPolylineIndexWithPolyline:
    (nonnull MMKPolyline *)polyline;

Creates PolylineIndex for polyline

Class methods

positionsOfForkWithFirstPolyline:firstPolylinePosition:secondPolyline:secondPolylinePosition:

+ (nonnull NSArray<MMKPolylinePosition *> *)
    positionsOfForkWithFirstPolyline:(nonnull MMKPolyline *)firstPolyline
               firstPolylinePosition:
                   (nonnull MMKPolylinePosition *)firstPolylinePosition
                      secondPolyline:(nonnull MMKPolyline *)secondPolyline
              secondPolylinePosition:
                  (nonnull MMKPolylinePosition *)secondPolylinePosition;

The position of the fork on the road.

Parameters

firstPolyline

The first path of the fork.

firstPolylinePosition

The position of the first path.

secondPolyline

The second path of the fork.

secondPolylinePosition

The position of the second path.


advancePolylinePositionWithPolyline:position:distance:

+ (nonnull MMKPolylinePosition *)
    advancePolylinePositionWithPolyline:(nonnull MMKPolyline *)polyline
                               position:(nonnull MMKPolylinePosition *)position
                               distance:(double)distance;

The position of the polyline.

Parameters

polyline

The polyline.

position

The polyline position.

distance

Distance.


pointByPolylinePositionWithGeometry:position:

+ (nonnull MMKPoint *)
    pointByPolylinePositionWithGeometry:(nonnull MMKPolyline *)geometry
                               position:(nonnull MMKPolylinePosition *)position;

The point in the polyline.

Parameters

geometry

The polyline.

position

The polyline position.


distanceBetweenPolylinePositionsWithPolyline:from:to:

+ (double)
    distanceBetweenPolylinePositionsWithPolyline:(nonnull MMKPolyline *)polyline
                                            from:(nonnull MMKPolylinePosition *)
                                                     from
                                              to:(nonnull MMKPolylinePosition *)
                                                     to;

Undocumented


createPolylineIndexWithPolyline:

+ (nonnull MMKPolylineIndex *)createPolylineIndexWithPolyline:
    (nonnull MMKPolyline *)polyline;

Creates PolylineIndex for polyline. See MMKPolylineIndex for details.