tripkit-android / com.skedgo.tripkit.common.util / SphericalUtil / computeOffset
computeOffset
open static fun computeOffset(from:
TripKitLatLng
!, distance:
Double
, heading:
Double
):
TripKitLatLng
!
Returns the TripKitLatLng resulting from moving a distance from an origin in the specified heading (expressed in degrees clockwise from north).
Parameters
from
- TripKitLatLng!: The TripKitLatLng from which to start.
distance
- Double: The distance to travel.
heading
- Double: The heading in degrees clockwise from north.