calculateRadius

fun calculateRadius(chordLength: Double, arcMidPoint: LngLatAlt, chordMidPoint: LngLatAlt): Double

Calculate the radius of a circle based on the chord length, arc midpoint and chord midpoint

Return

The coordinates of the center of the circle as LngLatAlt.

Parameters

chordLength

the length of the segment chord

arcMidPoint

coordinates of the arc midpoint as LngLatAlt

chordMidPoint

The coordinates of the chord midpoint as LngLatAlt.