几何:找到点两点之间的特定距离 [英] Geometry: find point a specific distance between two points

查看:55
本文介绍了几何:找到点两点之间的特定距离的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这类似于

This is similar to this question, but kind of the opposite.

我有两个地理位置(纬度,经度)A和B.假设它们相距40海里.我想计算从A点到B点之间距离A点10海里的点的坐标.我敢肯定这是非常基本的数学,但是因为我不得不做这种事情已经过去了多年了.数学(我每天使用的其他一些数学),所以我陷入了困境.任何指针将不胜感激.我为这个项目编写的代码是使用Python,但是数学不是特定于语言的,因此我并不真正担心-我只想知道公式.

I have two geographic points (latitude, longitude) A and B. Let's say they're 40 nautical miles apart. I'd like to calculate the coordinates of the point 10 nautical miles from point A, on the line between A and B. I'm sure this is very basic math, but it's been YEARS since I've had to do this kind of math (some other kinds I use daily), so I'm stuck. Any pointers would be greatly appreciated. My code for this project is in Python, but math isn't language-specific, so I'm not really concerned about that -- I just want to know the formula.

推荐答案

您有两个位置向量(纬度,经度).通过这些,您可以计算出从A点到B点的方位角(如果您还不知道的话).有了方位角和距离,您就可以计算新的纬度和经度.

You have two position vectors with (latitude, longitude). From those you can calculate your bearing from point A to point B (if you don't already know it). With a bearing and a distance you can calculate your new latitude and longitude.

您需要了解的所有数学信息都在这里引用: http://www.movable-type.co.uk/scripts/latlong.html .我很少处理这些东西,因此最好将该链接保存在某个位置(读取:打印).

All the math you need to know is referenced here: http://www.movable-type.co.uk/scripts/latlong.html. I deal with this stuff so infrequently it's nice to have that link saved somewhere (read: printed).

这篇关于几何:找到点两点之间的特定距离的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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