MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / operator+

Function operator+

include/reactphysics3d/mathematics/Matrix2x2.h:244–249  ·  view source on GitHub ↗

Overloaded operator for addition

Source from the content-addressed store, hash-verified

242
243// Overloaded operator for addition
244RP3D_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
252RP3D_FORCE_INLINE Matrix2x2 operator-(const Matrix2x2& matrix1, const Matrix2x2& matrix2) {

Callers

nothing calls this directly

Calls 1

Matrix2x2Class · 0.85

Tested by

no test coverage detected