Skip to content

Commit

Permalink
Update Vector.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
devw4r committed Jul 12, 2024
1 parent e1525f8 commit bf757c9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions utility/Vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ struct Vector3
static Vector3 Transform(const Vector3& position, const Matrix& matrix);
static float GetDistance(const Vector3& a, const Vector3& b)
{
return std::sqrt(std::pow((a.X - b.X), 2) +
std::pow((a.Y - b.Y), 2) +
std::pow((a.Z - b.Z), 2));
return sqrt(pow((a.X - b.X), 2) + pow((a.Y - b.Y), 2) + pow((a.Z - b.Z), 2));
}

float X;
Expand Down

0 comments on commit bf757c9

Please sign in to comment.