Use std::sqrt

This commit is contained in:
Daniel M. Weeks
2015-04-15 19:20:37 +02:00
committed by Carbenium
parent 71ba35a6cd
commit 9c197e82a3
+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()