MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / getTrace

Method getTrace

include/reactphysics3d/mathematics/Matrix3x3.h:220–224  ·  view source on GitHub ↗

Return the trace of the matrix

Source from the content-addressed store, hash-verified

218
219// Return the trace of the matrix
220RP3D_FORCE_INLINE decimal Matrix3x3::getTrace() const {
221
222 // Compute and return the trace
223 return (mRows[0][0] + mRows[1][1] + mRows[2][2]);
224}
225
226// Set the matrix to the identity matrix
227RP3D_FORCE_INLINE void Matrix3x3::setToIdentity() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected