Is_point_on_segment [FAST]

Function to compute if a point M belongs or not to a given [AB] segment of the 2D or 3D space. Also handles multiple points M to test.
6 Downloads
Updated 20 Oct 2024
Please first check the examples tab (.mlx file) here on the right for a complete description.
Once downloaded, typewrite 'help is_point_on_segment' or 'doc is_point_on_segment' in Matlab console for support.
To benefit from the file documentation attached, be sure to download all the files.
Please don't forget to rate if this code if it helped you. Thanks ;-)

Cite As

Nicolas Douillet (2026). Is_point_on_segment [FAST] (https://github.com/NicolasDouillet/is_point_on_segment/releases/tag/v1.0), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.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.