tripkit-android / com.skedgo.tripkit.common.util / SphericalUtil / computeOffsetOrigin
computeOffsetOrigin
open static fun computeOffsetOrigin(to:
TripKitLatLng
!, distance:
Double
, heading:
Double
):
TripKitLatLng
!
Returns the location of origin when provided with a TripKitLatLng destination, meters travelled and original heading. Headings are expressed in degrees clockwise from North. This function returns null when no solution is available.
Parameters
to
- TripKitLatLng!: The destination TripKitLatLng.
distance
- Double: The distance travelled, in meters.
heading
- Double: The heading in degrees clockwise from north.