Distance Between a Triangle and a Point

버전 1.0.0 (1.25 KB) 작성자: Ayad Al-Rumaithi
Finds the shortest distance between a triangle and a point in 3d space.
다운로드 수: 5
업데이트 날짜: 2023/1/20

라이선스 보기

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!
버전 게시됨 릴리스 정보
1.0.0