offset

fun Position.offset(distance: Length, bearing: Bearing): Position(source)

Takes a Position and calculates the location of a destination position given a distance Length and Bearing. This uses the Haversine formula to account for global curvature.

Return

destination position

Parameters

distance

distance from the origin point

bearing

direction from the origin point


fun Point.offset(distance: Length, bearing: Bearing): Position(source)

Takes a Point and calculates the location of a destination position given a distance Length and Bearing. This uses the Haversine formula to account for global curvature.

Return

destination position

Parameters

distance

distance from the origin point

bearing

direction from the origin point