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

Function operator*

include/reactphysics3d/mathematics/Matrix2x2.h:266–269  ·  view source on GitHub ↗

Overloaded operator for multiplication with a number

Source from the content-addressed store, hash-verified

264
265// Overloaded operator for multiplication with a number
266RP3D_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
272RP3D_FORCE_INLINE Matrix2x2 operator*(const Matrix2x2& matrix, decimal nb) {

Callers

nothing calls this directly

Calls 2

Matrix2x2Class · 0.85
Vector2Class · 0.70

Tested by

no test coverage detected