mirror of https://github.com/AxioDL/zeus.git
Fix ordering of CAABox::split* methods
This commit is contained in:
parent
8702ae7d97
commit
b97ccb7782
|
@ -311,7 +311,7 @@ public:
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void splitX(CAABox& posX, CAABox& negX) const
|
inline void splitX(CAABox& negX, CAABox& posX) const
|
||||||
{
|
{
|
||||||
float midX = (max.x - min.x) * .5 + min.x;
|
float midX = (max.x - min.x) * .5 + min.x;
|
||||||
posX.max = max;
|
posX.max = max;
|
||||||
|
@ -322,7 +322,7 @@ public:
|
||||||
negX.min = min;
|
negX.min = min;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void splitY(CAABox& posY, CAABox& negY) const
|
inline void splitY(CAABox& negY, CAABox& posY) const
|
||||||
{
|
{
|
||||||
float midY = (max.y - min.y) * .5 + min.y;
|
float midY = (max.y - min.y) * .5 + min.y;
|
||||||
posY.max = max;
|
posY.max = max;
|
||||||
|
@ -333,7 +333,7 @@ public:
|
||||||
negY.min = min;
|
negY.min = min;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void splitZ(CAABox& posZ, CAABox& negZ) const
|
inline void splitZ(CAABox& negZ, CAABox& posZ) const
|
||||||
{
|
{
|
||||||
float midZ = (max.z - min.z) * .5 + min.z;
|
float midZ = (max.z - min.z) * .5 + min.z;
|
||||||
posZ.max = max;
|
posZ.max = max;
|
||||||
|
|
Loading…
Reference in New Issue