isinconvexset (2D, 3D)

Function to verify if one given point is in or out a given convex 2D (polygon) or 3D (polyhedron) convex set, excluding its boundaries.
75 Downloads
Updated 24 Sep 2025
Help, doc, and examples included.
Overloaded for multiple points to test.
Hyperplanes (edges in 2D, triangles in 3D) do not need to be coherently oriented.
See also :
Please first check the examples tab (.mlx file) here on the right for a complete description.
Once downloaded, typewrite 'help isinconvexset' or 'doc isinconvexset' in Matlab console for support.
To benefit from the file documentation attached, be sure to download the files.
Please consider rating this code if it helped you. Thanks ;-)

Cite As

Nicolas Douillet (2025). isinconvexset (2D, 3D) (https://github.com/NicolasDouillet/isinconvexset/releases/tag/v2.42), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Bounding Regions in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
2.42

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

2.4.1

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

2.4

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

2.3

+ cover img new test

2.2

+ floating point error management with epsilon
+ minimum input parsing
+ new cover img

2.1

cover img test

2.0

Major improvements : + hyperplanes use (edges / triangles), bug fix, increase speed, 2D/3D convex hulls of random point sets for examples, vectorize, also works for a set of vertices, update help, doc, description.

1.4

Improved typo, help, doc, description.

1.3

+ doc

1.2.0.0

- Modified picture

1.1.0.0

- Enlarge picture

1.0.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.