Skip to content

Instantly share code, notes, and snippets.

@bysreg bysreg/aabbops.cpp
Created Sep 30, 2017

Embed
What would you like to do?
AABB Intersection test
bool IsIntersect(const AABB& a, const AABB& b)
{
for(int i=0;i<3;++i)
{
if(a.min[i] <= b.max[i] && a.max[i] <= b.min[i])
return true;
}
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.