Skip to content

Commit

Permalink
XD
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Sep 24, 2024
1 parent 720b656 commit adc2233
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/hyprutils/math/Mat3x3.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
4 changes: 4 additions & 0 deletions src/math/Mat3x3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit adc2233

Please sign in to comment.