Use std::sqrt
(cherry picked from commit 9c197e82a3b6742a7d2b521efe9cd9232e9ab8f1)
This commit is contained in:
1 parent
84ab4fcd5f
commit
d1b4ad5b14
1 file changed
+2
-2
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user