maps-utils-ktx / com.google.maps.android.ktx.utils / com.google.android.gms.maps.model.LatLng / withSphericalLinearInterpolation

withSphericalLinearInterpolation

fun LatLng.withSphericalLinearInterpolation(to: LatLng, fraction: Double): LatLng

Returns an interpolated LatLng between this LatLng and to by the provided fractional value fraction.

Parameters

to - the destination LatLng

fraction - the fraction to interpolate by where the range is 0.0,1.0

Return
the interpolated LatLng

See Also

Slerp