midpoint

Takes two Positions and returns a point midway between them. The midpoint is calculated geodesically, meaning the curvature of the earth is taken into account.

Return

A Position midway between pos1 and pos2

Parameters

pos1

the first point

pos2

the second point


fun midpoint(pos1: Point, pos2: Point): Position(source)

Takes two Points and returns a point midway between them. The midpoint is calculated geodesically, meaning the curvature of the earth is taken into account.

Return

A Position midway between pos1 and pos2

Parameters

pos1

the first point

pos2

the second point