From f03f83a309a08cc6dba74645e224d538b1437d92 Mon Sep 17 00:00:00 2001 From: caxanga334 <10157643+caxanga334@users.noreply.github.com> Date: Thu, 5 Dec 2024 20:52:29 -0300 Subject: [PATCH] Fix Linux Build --- extension/util/helpers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extension/util/helpers.cpp b/extension/util/helpers.cpp index 9617f11..911942d 100644 --- a/extension/util/helpers.cpp +++ b/extension/util/helpers.cpp @@ -1267,13 +1267,13 @@ bool UtilHelpers::AABBIntersectsAABB(const Vector& mins1, const Vector& maxs1, c bool UtilHelpers::PointIsInsideSphere(const Vector& point, const Vector& sphereCenter, const float sphereRadius) { - float distance = std::sqrtf(std::powf((point.x - sphereCenter.x), 2.0f) + std::powf((point.y - sphereCenter.y), 2.0f) + std::powf((point.z - sphereCenter.z), 2.0f)); + float distance = std::sqrtf(powf((point.x - sphereCenter.x), 2.0f) + powf((point.y - sphereCenter.y), 2.0f) + powf((point.z - sphereCenter.z), 2.0f)); return distance < sphereRadius; } bool UtilHelpers::PointIsInsideSphereSqr(const Vector& point, const Vector& sphereCenter, const float sphereRadius) { - float distance = std::powf((point.x - sphereCenter.x), 2.0f) + std::powf((point.y - sphereCenter.y), 2.0f) + std::powf((point.z - sphereCenter.z), 2.0f); + float distance = powf((point.x - sphereCenter.x), 2.0f) + powf((point.y - sphereCenter.y), 2.0f) + powf((point.z - sphereCenter.z), 2.0f); return distance < sphereRadius * sphereRadius; }