diff --git a/Userland/Libraries/LibGfx/Matrix.h b/Userland/Libraries/LibGfx/Matrix.h index ac278539340..8c939560020 100644 --- a/Userland/Libraries/LibGfx/Matrix.h +++ b/Userland/Libraries/LibGfx/Matrix.h @@ -38,6 +38,12 @@ public: __builtin_memcpy(m_elements, other.elements(), sizeof(T) * N * N); } + Matrix& operator=(const Matrix& other) + { + __builtin_memcpy(m_elements, other.elements(), sizeof(T) * N * N); + return *this; + } + constexpr auto elements() const { return m_elements; } constexpr auto elements() { return m_elements; }