从点距离线在地球上 [英] Distance from point to line on Earth

查看:107
本文介绍了从点距离线在地球上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一些简单的

<一个href="http://www.exaflop.org/docs/cgafaq/cga1.html#Subject%201.02%3a%20How%20do%20I%20find%20the%20distance%20from%20a%20point%20to%20a%20line"相对=nofollow>主题1.02:如何找到从点到线的距离

但是,这适用于经度/纬度。

But that works with Lon/Lat.

推荐答案

感谢您想教我,但我都问了一个简单实用的解决方案。不是数学leacture:)

thank you trying to teach me, but I have asked for a simple pragmatic solution. Not a math leacture :)

总之,这里是一个简单的答案:

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".

这就是它。我们在几个code线完成。没有迭代。没有additinal库。精益和平均

That is it. we done in a couple of lines of code. no iterations. no additinal libs. lean and mean

这篇关于从点距离线在地球上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆