refactor(Core/Misc): sqrt/log/exp() to std::sqrt/log/exp() (#9792)

This commit is contained in:
Kitzunu
2022-02-09 11:59:30 +01:00
committed by GitHub
parent 65a1fbfd35
commit cf65cd6baf
15 changed files with 24 additions and 24 deletions

View File

@@ -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 )

View File

@@ -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()