Check points inside or outside a triangle or tetrahedron
Updated 30 Jul 2020
To check points inside or outside a given 2D triangle, 3D tetrahedron, or an arbitrary DIM-dimensional simplex. In geometry, a simplex is a generalization of the notion of a triangle or tetrahedron to arbitrary dimensions. E.g.: A 2D simplex is a triangle. A 3D simplex is a tetrahedral.
Contact and support
Email: Jin Yang, email@example.com;
I appreciate you giving me ratings and leaving comments to help me keep improving this code!
Jin Yang (2023). Check points inside or outside a triangle or tetrahedron (https://github.com/jyang526843/PtInTriCheck), GitHub. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Versions that use the GitHub default branch cannot be downloaded
Add a note of the brief theory about how I implement this code.
Updated outputs: 0-Outside triangle; 1-Inside triangle