Overloaded operator for multiplication with a number
| 264 | |
| 265 | // Overloaded operator for multiplication with a number |
| 266 | RP3D_FORCE_INLINE Matrix2x2 operator*(decimal nb, const Matrix2x2& matrix) { |
| 267 | return Matrix2x2(matrix.mRows[0][0] * nb, matrix.mRows[0][1] * nb, |
| 268 | matrix.mRows[1][0] * nb, matrix.mRows[1][1] * nb); |
| 269 | } |
| 270 | |
| 271 | // Overloaded operator for multiplication with a matrix |
| 272 | RP3D_FORCE_INLINE Matrix2x2 operator*(const Matrix2x2& matrix, decimal nb) { |