distance between point and line segments
バージョン 1.0.1 (1.29 KB) 作成者:
Mustafa Codur
the shortest distance between a line segment and a point
It provides not only the distance between a line segment and a point it also give the position of the nearest point.
v1, and v2 are the starting and ending positions of the line segment, while pt is the position of the point.
source is Malcolm Kesson
引用
Mustafa Codur (2024). distance between point and line segments (https://www.mathworks.com/matlabcentral/fileexchange/97462-distance-between-point-and-line-segments), MATLAB Central File Exchange. 取得済み .
MATLAB リリースの互換性
作成:
R2021a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linuxタグ
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!