From 0e7d969a8a27d0d7b327c0a42ce23d6231dcb002 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Thu, 22 Jan 2026 21:32:24 -0800 Subject: [PATCH] Cleanup. (#365) --- src/bounds.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bounds.cpp b/src/bounds.cpp index 8227835..da43768 100644 --- a/src/bounds.cpp +++ b/src/bounds.cpp @@ -397,13 +397,13 @@ namespace bx bottom.normal.z = zw - zy; bottom.dist = ww - wy; - Plane* plane = _result; for (uint32_t ii = 0; ii < 6; ++ii) { - const float invLen = 1.0f/length(plane->normal); - plane->normal = normalize(plane->normal); - plane->dist *= invLen; - ++plane; + Plane& plane = _result[ii]; + + const float invLen = divSafe(1.0f, length(plane.normal) ); + plane.normal = mul(plane.normal, invLen); + plane.dist *= invLen; } }