Use std::sqrt
This commit is contained in:
committed by
Carbenium
parent
71ba35a6cd
commit
9c197e82a3
@@ -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