Add CAABox::booleanIntersection

This commit is contained in:
2017-01-20 21:57:34 -08:00
parent caff50dfa5
commit e7a72d02b1
7 changed files with 80 additions and 20 deletions

View File

@@ -327,4 +327,14 @@ bool close_enough(const CVector2f& a, const CVector2f& b, float epsilon)
return true;
return false;
}
template <> CVector3f min(const CVector3f& a, const CVector3f& b)
{
return {min(a.x, b.x), min(a.y, b.y), min(a.z, b.z)};
}
template <> CVector3f max(const CVector3f& a, const CVector3f& b)
{
return {max(a.x, b.x), max(a.y, b.y), max(a.z, b.z)};
}
}