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

Method identity

include/reactphysics3d/mathematics/Matrix3x3.h:234–236  ·  view source on GitHub ↗

Return the 3x3 identity matrix

Source from the content-addressed store, hash-verified

232
233// Return the 3x3 identity matrix
234RP3D_FORCE_INLINE Matrix3x3 Matrix3x3::identity() {
235 return Matrix3x3(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0);
236}
237
238// Return the 3x3 zero matrix
239RP3D_FORCE_INLINE Matrix3x3 Matrix3x3::zero() {

Callers

nothing calls this directly

Calls 1

Matrix3x3Class · 0.70

Tested by

no test coverage detected