tripkit-android / com.skedgo.tripkit.common.util / SphericalUtil / interpolate
interpolate
open static fun interpolate(from:
TripKitLatLng
!, to:
TripKitLatLng
!, fraction:
Double
):
TripKitLatLng
!
Returns the TripKitLatLng which lies the given fraction of the way between the origin TripKitLatLng and the destination TripKitLatLng.
Parameters
from
- TripKitLatLng!: The TripKitLatLng from which to start.
to
- TripKitLatLng!: The TripKitLatLng toward which to travel.
fraction
- Double: A fraction of the distance to travel.
Return TripKitLatLng!: The interpolated TripKitLatLng.