Improve CAABox::GetExtents

Thanks encounter
This commit is contained in:
Henrique Gemignani Passos Lima 2022-10-03 18:05:16 +03:00
parent ce2276b310
commit 3f4e53ec74
No known key found for this signature in database
GPG Key ID: E224F951761145F8
1 changed files with 1 additions and 3 deletions

View File

@ -69,9 +69,7 @@ public:
inline CVector3f GetExtents() const { inline CVector3f GetExtents() const {
// Name is a guess // Name is a guess
CVector3f result = max - min; return (max - min) * 0.5f;
result *= 0.5f;
return result;
} }
const CVector3f& GetMinPoint() const { return min; } const CVector3f& GetMinPoint() const { return min; }