Minor literal fix

This commit is contained in:
Jack Andersen 2017-12-01 18:52:05 -10:00
parent 9a22f0c5ed
commit 4134568660
1 changed files with 3 additions and 3 deletions

View File

@ -382,7 +382,7 @@ public:
inline void splitX(CAABox& negX, CAABox& posX) const inline void splitX(CAABox& negX, CAABox& posX) const
{ {
float midX = (max.x - min.x) * .5 + min.x; float midX = (max.x - min.x) * .5f + min.x;
posX.max = max; posX.max = max;
posX.min = min; posX.min = min;
posX.min.x = midX; posX.min.x = midX;
@ -393,7 +393,7 @@ public:
inline void splitY(CAABox& negY, CAABox& posY) const inline void splitY(CAABox& negY, CAABox& posY) const
{ {
float midY = (max.y - min.y) * .5 + min.y; float midY = (max.y - min.y) * .5f + min.y;
posY.max = max; posY.max = max;
posY.min = min; posY.min = min;
posY.min.y = midY; posY.min.y = midY;
@ -404,7 +404,7 @@ public:
inline void splitZ(CAABox& negZ, CAABox& posZ) const inline void splitZ(CAABox& negZ, CAABox& posZ) const
{ {
float midZ = (max.z - min.z) * .5 + min.z; float midZ = (max.z - min.z) * .5f + min.z;
posZ.max = max; posZ.max = max;
posZ.min = min; posZ.min = min;
posZ.min.z = midZ; posZ.min.z = midZ;