Skip to content

Commit

Permalink
Fix Linux Build
Browse files Browse the repository at this point in the history
  • Loading branch information
caxanga334 committed Dec 5, 2024
1 parent 7bc84a5 commit f03f83a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension/util/helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit f03f83a

Please sign in to comment.