Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
大家好,我想知道如何根据 2 个坐标旋转箭头,即 uiimageview。我已经有了坐标 A 纬度和经度,也坐标 B 纬度和经度。我想使用位置管理器开始更新标题,因为我已经有了开始和结束坐标。谢谢 :)
这将为您提供辐射的方向
radiants = arctan((latB-latA)/(lonB-LonA))
您可以将其转换为度数
degrees = (radiants*180)/π