findCircleCenter

fun findCircleCenter(arcMidPoint: LngLatAlt, chordBearing: Double, radius: Double): LngLatAlt

Calculate the center coordinates of a circle based on the arc midpoint, chord bearing and radius.

Return

The coordinates of the center of the circle as LngLatAlt.

Parameters

arcMidPoint

the mid point of the arc as LngLatAlt

chordBearing

The bearing of the chord as a double.

radius

The radius of the arc as a double.