MCPcopy Create free account
hub / github.com/melonjs/melonJS / identity

Method identity

packages/melonjs/src/math/matrix3d.ts:88–90  ·  view source on GitHub ↗

* reset the transformation matrix to the identity matrix (no transformation). * the identity matrix and parameters position : * * @returns Reference to this object for method chaining

()

Source from the content-addressed store, hash-verified

86 * @returns Reference to this object for method chaining
87 */
88 identity() {
89 return this.setTransform(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
90 }
91
92 /**
93 * Set the matrix to the specified value.

Callers 15

invertMethod · 0.95
syncFromPhysicsMethod · 0.45
getBasisMethod · 0.45
worldToScreenMethod · 0.45
_rebuildFrustumPlanesMethod · 0.45
resetMethod · 0.45
updateMethod · 0.45
_syncAngleTransformMethod · 0.45
onResetEventMethod · 0.45
constructorMethod · 0.45
resetMethod · 0.45
resetMethod · 0.45

Calls 1

setTransformMethod · 0.95

Tested by 5

buildFlipTransformFunction · 0.36
makeMeshFunction · 0.36
renderedVerticesFunction · 0.36
drawFullFunction · 0.36
firstVertexWithFlagFunction · 0.36