MCPcopy
hub / github.com/antimatter15/splat / translate4

Function translate4

main.js:288–296  ·  view source on GitHub ↗
(a, x, y, z)

Source from the content-addressed store, hash-verified

286}
287
288function translate4(a, x, y, z) {
289 return [
290 ...a.slice(0, 12),
291 a[0] * x + a[4] * y + a[8] * z + a[12],
292 a[1] * x + a[5] * y + a[9] * z + a[13],
293 a[2] * x + a[6] * y + a[10] * z + a[14],
294 a[3] * x + a[7] * y + a[11] * z + a[15],
295 ];
296}
297
298function createWorker(self) {
299 let buffer;

Callers 2

mainFunction · 0.85
frameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected