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

Method identity

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

Return the 2x2 identity matrix

Source from the content-addressed store, hash-verified

218
219// Return the 2x2 identity matrix
220RP3D_FORCE_INLINE Matrix2x2 Matrix2x2::identity() {
221
222 // Return the isdentity matrix
223 return Matrix2x2(1.0, 0.0, 0.0, 1.0);
224}
225
226// Return the 2x2 zero matrix
227RP3D_FORCE_INLINE Matrix2x2 Matrix2x2::zero() {

Callers

nothing calls this directly

Calls 1

Matrix2x2Class · 0.85

Tested by

no test coverage detected