File Exchange

image thumbnail

Separating Axis theorem - MATLAB implementation

version (1.83 KB) by Vignesh Ramkrishnan
Used to find if two quadrilaterals intersect


Updated 30 Aug 2012

View License

The Separating Axis Theorem (SAT) is used to check if two oriented bounding boxes intersect. This can be used in collision detection or checking for bounding box intersection in pattern recognition in image processing.

Comments and Ratings (3)

Thank you , very helpful. How can I modify the code for cylinders in 3D?

Thanks for sharing!

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.

Learn About Live Editor