MCPcopy Index your code
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / getScaleAtLevel

Function getScaleAtLevel

assets/js/block_ninja.js:574–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

572// Not very optimized - lots of duplicate vertices are generated.
573function makeRecursiveCubeModel({ recursionLevel, splitFn, color, scale=1 }) {
574 const getScaleAtLevel = level => 1 / (3 ** level);
575
576 // We can model level 0 manually. It's just a single, centered, cube.
577 let cubeOrigins = [{ x: 0, y: 0, z: 0 }];

Callers 1

makeRecursiveCubeModelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected