Distance Between a Triangle and a Line Segment

Finds the shortest distance between a triangle and a line segment in 3d space.
ダウンロード: 6
更新 2023/1/20

ライセンスの表示

This function finds the shortest distance between a triangle and a line segment in 3d space using nonlinear constrained optimization.
function d=DistanceTriangleLine(vt1,vt2,vt3,vl1,vl2)
where:
vt1 is (3*1) coordinate vector for the first vertex of the triangle.
vt2 is (3*1) coordinate vector for the second vertex of the triangle.
vt3 is (3*1) coordinate vector for the third vertex of the triangle.
vl1 is (3*1) coordinate vector for the first point of the line segment.
vl2 is (3*1) coordinate vector for the second point of the line segment.
d is the shortest distance between the triangle and the line segment.

引用

Ayad Al-Rumaithi (2024). Distance Between a Triangle and a Line Segment (https://www.mathworks.com/matlabcentral/fileexchange/123615-distance-between-a-triangle-and-a-line-segment), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2017b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
タグ タグを追加

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0