Ray/box intersection using Smits' algorithm
The zip file includes one example of intersection.
 "Efficiency issues for ray tracing".
Journal of Graphics Tools, 3(2):1–14, 1998.
 "An efficient and robust ray-box intersection algorithm"
A. Williams, S. Barrus, and R.K. Morley and P. Shirley.
Journal of Graphics, GPU, & Game Tools, 10(1):45-60, 2005.
 Other algorithms:
Jesús P. Mena-Chalco (2023). Ray/box Intersection (https://www.mathworks.com/matlabcentral/fileexchange/26834-ray-box-intersection), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: Ray/Triangle Intersection
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!