isinconvexset (2D, 3D)

Function to check if one vertex (set) is located inside or outside a given -opened- convex point set. Help, doc, and examples included.


Updated 12 Aug 2020

From GitHub

View License on GitHub

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 file, not to just copy and paste it.
Please rate it this code helped you.
Also works for multiple points to test.
Hyperplanes (edges in 2D, triangles in 3D) don't need to be coherently oriented.

Cite As

Nicolas Douillet (2023). isinconvexset (2D, 3D) (, GitHub. Retrieved .

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

See release notes for this release on GitHub:


+ cover img new test


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


cover img test


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.


Improved typo, help, doc, description.


+ doc

- Modified picture

- Enlarge picture

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.