2D minimal segments distance

Computes the minimal distace between two segments
1.2K Downloads
Updated 4 Sep 2008

View License

The algorithm computes the minimal distace between two segments.
It also manage the case of parallel segments and null length segments.
The algorith is inspired by Franz J. Vesely at http://homepage.univie.ac.at/Franz.Vesely/notes/hard_sticks/hst/hst.html

Cite As

Roberto Olmi (2024). 2D minimal segments distance (https://www.mathworks.com/matlabcentral/fileexchange/20907-2d-minimal-segments-distance), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2006a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0

Some bugs found using the function has been fixed.