point to line distance

Versión 1.3.2 (3.52 KB) por Rik
calculate the distance between a 2D or 3D line and one or more points
2.2K descargas
Actualizado 5 Jul 2020

You can input either a 2D or a 3D line and 2D or 3D points. This function is an extended version of the line below, with some input checking:
distance=norm(cross(v1-v2,pt-v2))/norm(v1-v2)

Licence: CC by-nc-sa 4.0

Citar como

Rik (2024). point to line distance (https://github.com/thrynae/point_to_line_distance/releases/tag/1.3.2), GitHub. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2020a
Compatible con cualquier versión desde R13SP1
Compatibilidad con las plataformas
Windows macOS Linux
Etiquetas Añadir etiquetas

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.3.2

See release notes for this release on GitHub: https://github.com/thrynae/point_to_line_distance/releases/tag/1.3.2

1.3.1

added tester and example file, and added logo

1.3.0.0

fixed issue with 2D input

1.2.0.0

added compatibility for R13 (MATLAB 6.5)

1.1.0.0

uploaded incorrect version, so now a bug in the orientation is fixed

1.0.0.0

Para consultar o notificar algún problema sobre este complemento de GitHub, visite el repositorio de GitHub.
Para consultar o notificar algún problema sobre este complemento de GitHub, visite el repositorio de GitHub.