withSphericalLinearInterpolation

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

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

Return

the interpolated LatLng

Parameters

to

the destination LatLng

fraction

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

See also

Slerp

(http://en.wikipedia.org/wiki/Slerp)