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; }