diff --git a/Userland/Libraries/LibGfx/VectorN.h b/Userland/Libraries/LibGfx/VectorN.h index 7f6ad2a82d..80bf5e1be9 100644 --- a/Userland/Libraries/LibGfx/VectorN.h +++ b/Userland/Libraries/LibGfx/VectorN.h @@ -197,6 +197,17 @@ public: return result; } + template U> + constexpr bool operator==(VectorN const& other) const + { + UNROLL_LOOP + for (auto i = 0u; i < N; ++i) { + if (m_data[i] != static_cast(other.m_data[i])) + return false; + } + return true; + } + [[nodiscard]] constexpr T dot(VectorN const& other) const { T result {};