diff options
Diffstat (limited to 'Userland/Libraries/LibGfx/Vector3.h')
-rw-r--r-- | Userland/Libraries/LibGfx/Vector3.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGfx/Vector3.h b/Userland/Libraries/LibGfx/Vector3.h index 6f6c41d0c7..0e17d2721e 100644 --- a/Userland/Libraries/LibGfx/Vector3.h +++ b/Userland/Libraries/LibGfx/Vector3.h @@ -6,8 +6,8 @@ #pragma once +#include <AK/Math.h> #include <AK/String.h> -#include <math.h> namespace Gfx { template<typename T> @@ -121,7 +121,7 @@ public: constexpr T length() const { - return sqrt(m_x * m_x + m_y * m_y + m_z * m_z); + return AK::sqrt(m_x * m_x + m_y * m_y + m_z * m_z); } String to_string() const |