How can I calculate Euclidean distance from a point to a line in 2D?
조회 수: 5 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
답변 (1개)
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?
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!