MCPcopy
hub / github.com/dli/paint / makeIdentityMatrix

Function makeIdentityMatrix

brushviewer.js:28–46  ·  view source on GitHub ↗
(matrix)

Source from the content-addressed store, hash-verified

26 }
27
28 function makeIdentityMatrix (matrix) {
29 matrix[0] = 1.0;
30 matrix[1] = 0.0;
31 matrix[2] = 0.0;
32 matrix[3] = 0.0;
33 matrix[4] = 0.0;
34 matrix[5] = 1.0;
35 matrix[6] = 0.0;
36 matrix[7] = 0.0;
37 matrix[8] = 0.0;
38 matrix[9] = 0.0;
39 matrix[10] = 1.0;
40 matrix[11] = 0.0;
41 matrix[12] = 0.0;
42 matrix[13] = 0.0;
43 matrix[14] = 0.0;
44 matrix[15] = 1.0;
45 return matrix;
46 }
47
48 function premultiplyMatrix (out, matrixA, matrixB) { //out = matrixB * matrixA
49 var b0 = matrixB[0], b4 = matrixB[4], b8 = matrixB[8], b12 = matrixB[12],

Callers 1

brushviewer.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…