Improve CAABox::GetExtents

Thanks encounter


Former-commit-id: 3f4e53ec74
This commit is contained in:
Henrique Gemignani Passos Lima 2022-10-03 18:05:16 +03:00
parent c5a4f660bb
commit 1ede41207b
1 changed files with 1 additions and 3 deletions

View File

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