MCPcopy
hub / github.com/mewo2/terrain / zero

Function zero

terrain.js:181–188  ·  view source on GitHub ↗
(mesh)

Source from the content-addressed store, hash-verified

179}
180
181function zero(mesh) {
182 var z = [];
183 for (var i = 0; i < mesh.vxs.length; i++) {
184 z[i] = 0;
185 }
186 z.mesh = mesh;
187 return z;
188}
189
190function slope(mesh, direction) {
191 return mesh.map(function (x) {

Callers 11

addFunction · 0.85
mountainsFunction · 0.85
relaxFunction · 0.85
fillSinksFunction · 0.85
getFluxFunction · 0.85
getSlopeFunction · 0.85
erosionRateFunction · 0.85
erodeFunction · 0.85
setSeaLevelFunction · 0.85
cleanCoastFunction · 0.85
dropEdgeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…