mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-27 07:36:23 +00:00
refactor(Core/Misc): sqrt/log/exp() to std::sqrt/log/exp() (#9792)
This commit is contained in:
@@ -170,7 +170,7 @@ Vector3 Utils::GetLiquidVert(const IDefinition& def, Vector3 basePosition, float
|
||||
|
||||
float Utils::Distance( float x, float y )
|
||||
{
|
||||
return sqrt(x * x + y * y);
|
||||
return std::sqrt(x * x + y * y);
|
||||
}
|
||||
|
||||
std::string Utils::Replace( std::string str, const std::string& oldStr, const std::string& newStr )
|
||||
|
||||
@@ -103,7 +103,7 @@ public:
|
||||
|
||||
[[nodiscard]] float length() const
|
||||
{
|
||||
return sqrt(x * x + y * y + z * z);
|
||||
return std::sqrt(x * x + y * y + z * z);
|
||||
}
|
||||
|
||||
Vec3D& normalize()
|
||||
@@ -216,7 +216,7 @@ public:
|
||||
|
||||
[[nodiscard]] 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