Skip to content

Commit

Permalink
Update Vector.hpp
Browse files Browse the repository at this point in the history
Heelp
  • Loading branch information
devw4r committed Jul 12, 2024
1 parent 0ed3a8a commit 48e7580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utility/Vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ struct Vector3
static Vector3 Transform(const Vector3& position, const Matrix& matrix);
static float GetDistance(const Vector3& a, const Vector3& b)
{
return std::sqrt(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 48e7580

Please sign in to comment.