MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / copyVerticesTo

Function copyVerticesTo

assets/js/block_ninja.js:388–397  ·  view source on GitHub ↗
(arr1, arr2)

Source from the content-addressed store, hash-verified

386// Copy vertex data from one array into another.
387// Arrays must be the same length.
388function copyVerticesTo(arr1, arr2) {
389 const len = arr1.length;
390 for (let i=0; i<len; i++) {
391 const v1 = arr1[i];
392 const v2 = arr2[i];
393 v2.x = v1.x;
394 v2.y = v1.y;
395 v2.z = v1.z;
396 }
397}
398
399// Compute triangle midpoint.
400// Mutates `middle` property of given `poly`.

Callers 2

transformMethod · 0.85
glueShedSparksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected