如何计算 ArcByCenterPoint 的 start/end 个点的坐标?

How to compute coordinates of start/end points of a ArcByCenterPoint?

给定一个 ArcByCenterPoint,定义为:

  1. 中心位置(WGS84 中的经纬度)
  2. 半径(米)
  3. 起始角度(度)
  4. endAngle(度)

我们如何计算 start/end 个点的位置(纬度、经度)?我在找公式。

您可以在给定距起点的距离和方位here
部分找到合适的公式 摘录:

Formula:
φ2 = asin( sin φ1 ⋅ cos δ + cos φ1 ⋅ sin δ ⋅ cos θ )     
λ2 = λ1 + atan2( sin θ ⋅ sin δ ⋅ cos φ1, cos δ − sin φ1 ⋅ sin φ2 )
where   
φ is latitude, λ is longitude, 
θ is the bearing (clockwise from north), 
δ is the angular distance d/R; 
d being the distance travelled, R the earth’s radius

如果您想要极高的准确性,请尝试在 "Geodesic calculations for an ellipsoid done right" 网页上使用 GeographicLib and the formula in the source code under the hood of the Direct Problem