MCPcopy Create free account
hub / github.com/esengine/esengine / identity

Function identity

scripts/test-fbxloader-bindpose.mjs:43–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41}
42
43function identity() {
44 return new Float32Array([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]);
45}
46
47function isIdentity(m, tolerance = 0.01) {
48 const id = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected