地球上点到线的距离 [英] Distance from point to line on Earth
本文介绍了地球上点到线的距离的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要像
但这适用于经度/纬度.
But that works with Lon/Lat.
推荐答案
谢谢你教我,但我要求一个简单实用的解决方案.不是数学课.
thank you trying to teach me, but I have asked for a simple pragmatic solution. Not a math lecture.
无论如何,这是一个简单的答案:
Anyway, here is a simple answer:
看这里:http://www.movable-type.co.uk/scripts/latlong.html
计算方位角"(从线的起点到每个我想知道的点的距离)+串音距离".
Calculate "Bearing" (from start of the line to point distance from each I want to know) + "Cross-talk distance".
就是这样.我们用几行代码就完成了.没有迭代.没有额外的库.精益求精.
That is it. We are done in a couple of lines of code. No iterations. No additional libs. Lean and mean.
这篇关于地球上点到线的距离的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文