Distance Between Two Triangles

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

라이선스 보기

This function finds the shortest distance between two triangles in 3d space using nonlinear constrained optimization.
function d=Distance2Triangles(va1,va2,va3,vb1,vb2,vb3)
where:
va1 is (3*1) coordinate vector for the first vertex of triangle a.
va2 is (3*1) coordinate vector for the second vertex of triangle a.
va3 is (3*1) coordinate vector for the third vertex of triangle a.
vb1 is (3*1) coordinate vector for the first vertex of triangle b.
vb2 is (3*1) coordinate vector for the second vertex of triangle b.
vb3 is (3*1) coordinate vector for the third vertex of triangle b.
d is the shortest distance between triangle a and triangle b.

인용 양식

Ayad Al-Rumaithi (2024). Distance Between Two Triangles (https://www.mathworks.com/matlabcentral/fileexchange/123620-distance-between-two-triangles), 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