MCPcopy
hub / github.com/plotly/plotly.js / scale

Function scale

stackgl_modules/index.js:16672–16692  ·  view source on GitHub ↗

* Scales the mat4 by the dimensions in the given vec3 * * @param {mat4} out the receiving matrix * @param {mat4} a the matrix to scale * @param {vec3} v the vec3 to scale the matrix by * @returns {mat4} out

(out, a, v)

Source from the content-addressed store, hash-verified

16670 * @returns {mat4} out
16671 **/
16672function scale(out, a, v) {
16673 var x = v[0], y = v[1], z = v[2];
16674
16675 out[0] = a[0] * x;
16676 out[1] = a[1] * x;
16677 out[2] = a[2] * x;
16678 out[3] = a[3] * x;
16679 out[4] = a[4] * y;
16680 out[5] = a[5] * y;
16681 out[6] = a[6] * y;
16682 out[7] = a[7] * y;
16683 out[8] = a[8] * z;
16684 out[9] = a[9] * z;
16685 out[10] = a[10] * z;
16686 out[11] = a[11] * z;
16687 out[12] = a[12];
16688 out[13] = a[13];
16689 out[14] = a[14];
16690 out[15] = a[15];
16691 return out;
16692};
16693
16694/***/ }),
16695

Callers 9

determinant_3Function · 0.70
determinant_4Function · 0.70
determinant_5Function · 0.70
exactInSphere3Function · 0.70
exactInSphere4Function · 0.70
exactInSphere5Function · 0.70
exactInSphere6Function · 0.70
orientation_4Function · 0.70
orientation_5Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…