This commit is contained in:
Vaxry 2024-09-24 18:15:28 +01:00
parent 720b6562f0
commit adc2233e17
2 changed files with 6 additions and 1 deletions

View file

@ -40,9 +40,10 @@ namespace Hyprutils {
Mat3x3& multiply(const Mat3x3& other); Mat3x3& multiply(const Mat3x3& other);
/* misc utils */ /* misc utils */
Mat3x3 copy() const;
std::string toString() const; std::string toString() const;
bool operator==(const Mat3x3& other) const { bool operator==(const Mat3x3& other) const {
return other.matrix == matrix; return other.matrix == matrix;
} }

View file

@ -135,6 +135,10 @@ Mat3x3& Mat3x3::multiply(const Mat3x3& other) {
return *this; return *this;
} }
Mat3x3 Mat3x3::copy() const {
return *this;
}
std::string Mat3x3::toString() const { 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), 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)); matrix.at(7), matrix.at(8));