Registered Member
|
I have been wondering if there is a possibility (or what the preferred one would be) to check if two AlignedBoxes intersect.
Using squaredExteriorDistance() works:
What I am looking for is a function like contains() that simply returns a boolean. Something like:
Is there any such function in Eigen that I might have overlooked? What would be the easiest way to check for intersecting boxes? |
Moderator
|
Indeed, this function seems missing. In the meantime you can do:
!a.intersection(b).isEmpty() |
Registered Member
|
Thank you for the answer!
Should I prepare a patch and submit it to the bug tracker as a feature request? |
Moderator
|
would be nice. |
Registered Member
|
Any objections against making this function a free function as opposed to a member function? Or do we prefer member functions?
Regrads, Hauke |
Registered Member
|
I have created a patch and submitted it to the bug tracker as Bug 502.
|
Registered Member
|
I am not sure what the preferred style is, but I used the very similar contains() (member) function as a guideline. |
Registered users: Baidu [Spider], Bing [Bot], Google [Bot], Yahoo [Bot]