Line to line distance (3D / 2D) [FAST]

A function to compute the -minimum- distance between two lines in 3D space

https://github.com/NicolasDouillet/line_to_line_distance

You are now following this Submission

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.
Please don't forget to rate it, if this code helped you. Thanks ;-)

Cite As

Nicolas Douillet (2026). Line to line distance (3D / 2D) [FAST] (https://github.com/NicolasDouillet/line_to_line_distance/releases/tag/v2.0), GitHub. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
2.0

See release notes for this release on GitHub: https://github.com/NicolasDouillet/line_to_line_distance/releases/tag/v2.0

1.3

See release notes for this release on GitHub: https://github.com/NicolasDouillet/line_to_line_distance/releases/tag/v1.3

1.2

See release notes for this release on GitHub: https://github.com/NicolasDouillet/line_to_line_distance/releases/tag/v1.2

1.1

+ 4th example, intersecting lines => d = 0, updated help, doc

1.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.