Overloaded operator for substraction
| 250 | |
| 251 | // Overloaded operator for substraction |
| 252 | RP3D_FORCE_INLINE Matrix2x2 operator-(const Matrix2x2& matrix1, const Matrix2x2& matrix2) { |
| 253 | return Matrix2x2(matrix1.mRows[0][0] - matrix2.mRows[0][0], |
| 254 | matrix1.mRows[0][1] - matrix2.mRows[0][1], |
| 255 | matrix1.mRows[1][0] - matrix2.mRows[1][0], |
| 256 | matrix1.mRows[1][1] - matrix2.mRows[1][1]); |
| 257 | } |
| 258 | |
| 259 | // Overloaded operator for the negative of the matrix |
| 260 | RP3D_FORCE_INLINE Matrix2x2 operator-(const Matrix2x2& matrix) { |