mirror of
https://github.com/AxioDL/zeus.git
synced 2025-12-17 17:05:30 +00:00
Add CAABox::booleanIntersection
This commit is contained in:
10
src/Math.cpp
10
src/Math.cpp
@@ -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)};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user