Fast shortest distance between two line segments (in N dimensions)

Version 1.0.0.0 (2,35 KB) von Ondrej
Shortest distance between two line segments in N dimensions
567 Downloads
Aktualisiert 2. Feb 2015

Lizenz anzeigen

This function implements the fast algorithm proposed in Vladimir J. LUMELSKY, "On fast computation of distance between line segments," Information Processing Letters 21 (1985) 55-61. for computing the shortest distance between two line segments.
It handles all degenerate cases as well (when the lines are parallel, one line is a point, both lines are points).

Optionally, the function can return the closest two points on the line segments.

Zitieren als

Ondrej (2025). Fast shortest distance between two line segments (in N dimensions) (https://de.mathworks.com/matlabcentral/fileexchange/49502-fast-shortest-distance-between-two-line-segments-in-n-dimensions), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2009b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Computational Geometry finden Sie in Help Center und MATLAB Answers
Quellenangaben

Inspiriert von: Shortest distance between two line segments

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0