MCPcopy
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / cloneVertices

Function cloneVertices

assets/js/block_ninja.js:382–384  ·  view source on GitHub ↗
(vertices)

Source from the content-addressed store, hash-verified

380
381// Clone array and all vertices.
382function cloneVertices(vertices) {
383 return vertices.map(v => ({ x: v.x, y: v.y, z: v.z }));
384}
385
386// Copy vertex data from one array into another.
387// Arrays must be the same length.

Callers 3

constructorMethod · 0.85
block_ninja.jsFile · 0.85
glueShedSparksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected