From 3f4e53ec74ac11036750063a716934d520038308 Mon Sep 17 00:00:00 2001 From: Henrique Gemignani Passos Lima Date: Mon, 3 Oct 2022 18:05:16 +0300 Subject: [PATCH] Improve CAABox::GetExtents Thanks encounter --- include/Kyoto/Math/CAABox.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/Kyoto/Math/CAABox.hpp b/include/Kyoto/Math/CAABox.hpp index 62fde5f8..c80351bb 100644 --- a/include/Kyoto/Math/CAABox.hpp +++ b/include/Kyoto/Math/CAABox.hpp @@ -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; }