Skip to content

Commit

Permalink
Matrix2x2: added Scale method
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Nov 25, 2023
1 parent 93f67ea commit fd1ea8b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Common/interface/BasicMath.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,13 @@ template <class T> struct Matrix2x2
0, 1};
}

constexpr static Matrix2x2 Scale(T x, T y)
{
return Matrix2x2{
x, 0,
0, y};
}

constexpr static Matrix2x2 Mul(const Matrix2x2& m1, const Matrix2x2& m2)
{
Matrix2x2 mOut;
Expand Down

0 comments on commit fd1ea8b

Please sign in to comment.