MCPcopy Create free account
hub / github.com/DFHack/dfhack / eval

Method eval

plugins/3dveins.cpp:160–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158 }
159
160 float eval(float x, float y, float z) {
161 const float scale = 1.0f/4.3f;
162 return 0.06f * density1(x/96, y/96, z/48)
163 + 0.12f * density2(x/24, y/24, z/12)
164 + apow(shape(x*scale, y*scale, z*scale), 0.1f);
165 }
166
167 t_range range() { return t_range(-0.18f,1.18f); }
168};

Callers

nothing calls this directly

Calls 1

apowFunction · 0.85

Tested by

no test coverage detected