Distance Between a Triangle and a Point
バージョン 1.0.1 (1.25 KB) 作成者:
Ayad Al-Rumaithi
Finds the shortest distance between a triangle and a point in 3d space.
This function finds the shortest distance between a triangle and a point in 3d space using nonlinear constrained optimization.
function d=DistanceTrianglePoint(vt1,vt2,vt3,vp)
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.
vp is (3*1) coordinate vector of the point.
d is the shortest distance between the triangle and the point.
引用
Ayad Al-Rumaithi (2024). Distance Between a Triangle and a Point (https://www.mathworks.com/matlabcentral/fileexchange/123605-distance-between-a-triangle-and-a-point), 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!