从点到点(或位置)的 WindDirection
我有两点。现在是否可以判断一个点与另一个点的风向(例如非洲位于欧洲南部)?
I have two points. Now is it possible to tell what windDirection one point is from another (eg Africa lays south of Europe)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许 Location.bearingTo(Location) 就是您正在寻找的。
http://developer.android.com/reference/android/location/Location.html
您只需要将返回值的范围映射到北、东等。
Perhaps Location.bearingTo(Location) is what you're looking for.
http://developer.android.com/reference/android/location/Location.html
You'd just need to map ranges of return values to north, east, etc.