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 in degrees. 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

See also


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 in degrees. 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

See also