From adc2233e17fdd49025251c9dfd5090cb859ada2e Mon Sep 17 00:00:00 2001 From: Vaxry Date: Tue, 24 Sep 2024 18:15:28 +0100 Subject: [PATCH] XD --- include/hyprutils/math/Mat3x3.hpp | 3 ++- src/math/Mat3x3.cpp | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/include/hyprutils/math/Mat3x3.hpp b/include/hyprutils/math/Mat3x3.hpp index c58a4c9..72f8e87 100644 --- a/include/hyprutils/math/Mat3x3.hpp +++ b/include/hyprutils/math/Mat3x3.hpp @@ -40,9 +40,10 @@ namespace Hyprutils { Mat3x3& multiply(const Mat3x3& other); /* misc utils */ + Mat3x3 copy() const; std::string toString() const; - bool operator==(const Mat3x3& other) const { + bool operator==(const Mat3x3& other) const { return other.matrix == matrix; } diff --git a/src/math/Mat3x3.cpp b/src/math/Mat3x3.cpp index 7806c41..58e2167 100644 --- a/src/math/Mat3x3.cpp +++ b/src/math/Mat3x3.cpp @@ -135,6 +135,10 @@ Mat3x3& Mat3x3::multiply(const Mat3x3& other) { return *this; } +Mat3x3 Mat3x3::copy() const { + return *this; +} + std::string Mat3x3::toString() const { return std::format("[mat3x3: {}, {}, {}, {}, {}, {}, {}, {}, {}]", matrix.at(0), matrix.at(1), matrix.at(2), matrix.at(3), matrix.at(4), matrix.at(5), matrix.at(6), matrix.at(7), matrix.at(8));