calculateCenter

fun calculateCenter(start: LngLatAlt, end: LngLatAlt, arcMidPoint: LngLatAlt): Circle

Calculate the approximate center coordinates of a circle based on the start and end coordinates of a segment and the arc midpoint.

Return

The coordinates of the center of the circle as LngLatAlt.

Parameters

start

is start coordinates of segment

end

is end coordinates of segment

arcMidPoint

The coordinates of the arc midpoint as LngLatAlt.