(out, a, m)
| 70016 | return out; |
| 70017 | } |
| 70018 | function transformMat4(out, a, m) { |
| 70019 | var x = a[0]; |
| 70020 | var y = a[1]; |
| 70021 | out[0] = m[0] * x + m[4] * y + m[12]; |
| 70022 | out[1] = m[1] * x + m[5] * y + m[13]; |
| 70023 | return out; |
| 70024 | } |
| 70025 | function rotate(out, a, b, rad) { |
| 70026 | //Translate point to the origin |
| 70027 | var p0 = a[0] - b[0], p1 = a[1] - b[1], sinC = Math.sin(rad), cosC = Math.cos(rad); //perform rotation and translate to correct position |
nothing calls this directly
no outgoing calls
no test coverage detected