Overloaded operator for addition
| 242 | |
| 243 | // Overloaded operator for addition |
| 244 | RP3D_FORCE_INLINE Matrix2x2 operator+(const Matrix2x2& matrix1, const Matrix2x2& matrix2) { |
| 245 | return Matrix2x2(matrix1.mRows[0][0] + matrix2.mRows[0][0], |
| 246 | matrix1.mRows[0][1] + matrix2.mRows[0][1], |
| 247 | matrix1.mRows[1][0] + matrix2.mRows[1][0], |
| 248 | matrix1.mRows[1][1] + matrix2.mRows[1][1]); |
| 249 | } |
| 250 | |
| 251 | // Overloaded operator for substraction |
| 252 | RP3D_FORCE_INLINE Matrix2x2 operator-(const Matrix2x2& matrix1, const Matrix2x2& matrix2) { |