Given an ArcByCenterPoint, defined by:
- center position (lat,lon in WGS84)
- radius (meters)
- startAngle (degrees)
- endAngle (degrees)
how can we compute the position (lat, lon) of start/end points? I'm looking for a formula.
Given an ArcByCenterPoint, defined by:
how can we compute the position (lat, lon) of start/end points? I'm looking for a formula.
If you want extreme accuracy try using GeographicLib and the formula in the source code under the hood of the Direct Problem at the "Geodesic calculations for an ellipsoid done right" web page.
You can find appropriate formulas in the section Destination point given distance and bearing from start point here
Excerpt: