How can I calculate Euclidean distance from a point to a line in 2D?

5 ビュー (過去 30 日間)
K M Ibrahim Khalilullah
K M Ibrahim Khalilullah 2016 年 7 月 14 日
回答済み: John D'Errico 2016 年 7 月 14 日
I have a point p(x,y) and a line segment l. I have two end points of the line and also have some points between two ends points of the line. However, I want a euclidean distance between point and line in matlab.

回答 (1 件)

John D'Errico
John D'Errico 2016 年 7 月 14 日
Um, use google?
https://en.wikipedia.org/wiki/Distance_from_a_point_to_a_line
And if you have no clue as to how to find a line from two points, again, why not use google?

カテゴリ

Help Center および File ExchangeGeometric Transformation and Image Registration についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by