Does anyone know of a generalized intersection test?
Show older comments
I'm looking for an algorithm to test if an N-dimensional object and an M-dimensional object both defined within L-dimensional space intersect.
For instance, it could test if a line segment and a triangle intersect in 3D space, and it could also test if two 4D objects intersect.
3 Comments
Thomas Hamilton
on 27 Feb 2013
Thomas Hamilton
on 27 Feb 2013
Sean de Wolski
on 27 Feb 2013
A meta FYI: a question asked on Saturday when many of us are not working will fall off the front page or two and will never be seen. I recommend posting a comment or an edit sometime on a Monday to ensure maximum visibility.
Answers (1)
Sean de Wolski
on 27 Feb 2013
0 votes
There are lots of 2d/3d versions of this on the FEX:
However, there doesn't seem to be anything for this in n-d and I don't know if some these algorithms extend to n-dimensions or not. I do seem to remember John having a utility that did something like this, though it might just be the distance to curve one.
Categories
Find more on Resizing and Reshaping Matrices in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!