File Exchange

image thumbnail

Line to line distance (3D)

version 1.2 (7.96 KB) by Mathworlds
A function to compute the -minimum- distance between two lines in 3D space


Updated 18 Aug 2020

From GitHub

View Version History

View license on GitHub

Please first check the examples tab (.mlx doc file) here on the right for a complete description.

Once downloaded, typewrite 'doc line_to_line_distance' or 'help line_to_line_distance' in Matlab console for support.

To benefit from the file documentation attached, be sure to download the file, not to just copy and paste it.

Cite As

Mathworlds (2021). Line to line distance (3D) (, GitHub. Retrieved .

Comments and Ratings (3)


Edit : updated.


Great observation Pink_panther ! Thank you for this. I am going to fix this asap ;-)


This not affecting math, but your logo screen shows u2 vector on line 1 M1?

MATLAB Release Compatibility
Created with R2019b
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!