开发者

c#: Distance from point to a line segment (in longitude and latitude)

开发者 https://www.devze.com 2023-04-06 21:52 出处:网络
I have a position (A) in longitude and latitude. I have a line segment with start (B) and end (C) points in longitude and latitude.

I have a position (A) in longitude and latitude.

I have a line segment with start (B) and end (C) points in longitude and latitude.

What I am trying to calculate is the shortest distance from A to lin开发者_Python百科e B<->C. In other words the distance from A to the closest point (on line BC) in meters.

Thanks in advance.

0

精彩评论

暂无评论...
验证码 换一张
取 消