Skip to content

Commit

Permalink
Update Vector.hpp
Browse files Browse the repository at this point in the history
err
  • Loading branch information
devw4r committed Jul 12, 2024
1 parent bf757c9 commit 0ed3a8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utility/Vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#include <algorithm>
#include <iostream>
#include <cmath>

#ifndef PI
# define PI 3.14159264f
Expand All @@ -27,7 +28,7 @@ struct Vector3
static Vector3 Transform(const Vector3& position, const Matrix& matrix);
static float GetDistance(const Vector3& a, const Vector3& b)
{
return sqrt(pow((a.X - b.X), 2) + pow((a.Y - b.Y), 2) + pow((a.Z - b.Z), 2));
return std::sqrt(pow((a.X - b.X), 2) + std::pow((a.Y - b.Y), 2) + std::pow((a.Z - b.Z), 2));
}

float X;
Expand Down

0 comments on commit 0ed3a8a

Please sign in to comment.