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

Function operator+

include/reactphysics3d/mathematics/Matrix3x3.h:263–270  ·  view source on GitHub ↗

Overloaded operator for addition

Source from the content-addressed store, hash-verified

261
262// Overloaded operator for addition
263RP3D_FORCE_INLINE Matrix3x3 operator+(const Matrix3x3& matrix1, const Matrix3x3& matrix2) {
264 return Matrix3x3(matrix1.mRows[0][0] + matrix2.mRows[0][0], matrix1.mRows[0][1] +
265 matrix2.mRows[0][1], matrix1.mRows[0][2] + matrix2.mRows[0][2],
266 matrix1.mRows[1][0] + matrix2.mRows[1][0], matrix1.mRows[1][1] +
267 matrix2.mRows[1][1], matrix1.mRows[1][2] + matrix2.mRows[1][2],
268 matrix1.mRows[2][0] + matrix2.mRows[2][0], matrix1.mRows[2][1] +
269 matrix2.mRows[2][1], matrix1.mRows[2][2] + matrix2.mRows[2][2]);
270}
271
272// Overloaded operator for substraction
273RP3D_FORCE_INLINE Matrix3x3 operator-(const Matrix3x3& matrix1, const Matrix3x3& matrix2) {

Callers

nothing calls this directly

Calls 1

Matrix3x3Class · 0.70

Tested by

no test coverage detected