rotateCoordinate

open fun rotateCoordinate(coordinate: LatLng, center: LatLng, bearing: Double): LatLng

Rotates a coordinate around a center point

Return

a new coordinate that is the result of the rotation

Parameters

coordinate

the coordinate to rotate

center

the anchor point to rotate around

bearing

the amount to rotate (in DEGREES)