diff --git a/Userland/Libraries/LibGfx/VectorN.h b/Userland/Libraries/LibGfx/VectorN.h index 758f6e9d8e..bf8eecc518 100644 --- a/Userland/Libraries/LibGfx/VectorN.h +++ b/Userland/Libraries/LibGfx/VectorN.h @@ -205,9 +205,10 @@ public: operator*=(inv_length); } - [[nodiscard]] constexpr T length() const + template + [[nodiscard]] constexpr O length() const { - return AK::sqrt(dot(*this)); + return AK::sqrt(dot(*this)); } [[nodiscard]] constexpr VectorN<2, T> xy() const requires(N >= 3)