* 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)
| 16670 | * @returns {mat4} out |
| 16671 | **/ |
| 16672 | function 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 |
no outgoing calls
no test coverage detected
searching dependent graphs…