开发者

c#: Distance from point to a line segment (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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜