diff options
author | Kitzunu <24550914+Kitzunu@users.noreply.github.com> | 2022-02-09 11:59:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-09 11:59:30 +0100 |
commit | cf65cd6bafb783e72611866e15e0d3733746f064 (patch) | |
tree | a3ac6012094cfe77f6c46e5e1192ee783890f7cb /src/tools | |
parent | 65a1fbfd3553b7c7b8d8729513f919e752a449a2 (diff) |
refactor(Core/Misc): sqrt/log/exp() to std::sqrt/log/exp() (#9792)
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/mesh_extractor/Utils.cpp | 2 | ||||
-rw-r--r-- | src/tools/vmap4_extractor/vec3d.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/mesh_extractor/Utils.cpp b/src/tools/mesh_extractor/Utils.cpp index d71711ed78..3c87173452 100644 --- a/src/tools/mesh_extractor/Utils.cpp +++ b/src/tools/mesh_extractor/Utils.cpp @@ -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 ) diff --git a/src/tools/vmap4_extractor/vec3d.h b/src/tools/vmap4_extractor/vec3d.h index 4312874c75..25a042fc2e 100644 --- a/src/tools/vmap4_extractor/vec3d.h +++ b/src/tools/vmap4_extractor/vec3d.h @@ -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() |