MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / create

Function create

tests/webgl/gl-matrix.js:222–234  ·  view source on GitHub ↗

* Creates a new identity mat3 * * @returns {mat3} a new 3x3 matrix

()

Source from the content-addressed store, hash-verified

220 * @returns {mat3} a new 3x3 matrix
221 */
222function create() {
223 var out = new glMatrix.ARRAY_TYPE(9);
224 out[0] = 1;
225 out[1] = 0;
226 out[2] = 0;
227 out[3] = 0;
228 out[4] = 1;
229 out[5] = 0;
230 out[6] = 0;
231 out[7] = 0;
232 out[8] = 1;
233 return out;
234}
235
236/**
237 * Copies the upper-left 3x3 values into the given mat3.

Callers 6

WaitMethod · 0.85
AssumeRoleMethod · 0.85
TEST_FFunction · 0.85
gl-matrix.jsFile · 0.85
WaitMethod · 0.85
AssumeRoleMethod · 0.85

Calls

no outgoing calls

Tested by 5

WaitMethod · 0.68
AssumeRoleMethod · 0.68
TEST_FFunction · 0.68
WaitMethod · 0.68
AssumeRoleMethod · 0.68