Distance Between a Triangle and a Point

Finds the shortest distance between a triangle and a point in 3d space.
10 téléchargements
Mise à jour 22 sept. 2024

Afficher la licence

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.

Citation pour cette source

Ayad Al-Rumaithi (2026). Distance Between a Triangle and a Point (https://fr.mathworks.com/matlabcentral/fileexchange/123605-distance-between-a-triangle-and-a-point), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2017b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Tags Ajouter des tags
Version Publié le Notes de version
1.0.1

Added website

1.0.0