Use std::sqrt

(cherry picked from commit 9c197e82a3b6742a7d2b521efe9cd9232e9ab8f1)
This commit is contained in:
Daniel M. Weeks authored and Carbenium committed 2015-04-15 19:29:38 +02:00
1 parent 84ab4fcd5f
commit d1b4ad5b14
1 file changed
+2 -2
+2 -2
View File
@@ -103,7 +103,7 @@ public:
float length() const
{
return sqrt(x*x+y*y+z*z);
return std::sqrt(x*x+y*y+z*z);
}
Vec3D& normalize()
@@ -209,7 +209,7 @@ public:
float length() const
{
return sqrt(x*x+y*y);
return std::sqrt(x*x+y*y);
}
Vec2D& normalize()