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

Method eval

plugins/3dveins.cpp:121–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119 }
120
121 float eval(float x, float y, float z) {
122 return 0.1f * density1(x/96, y/96, z/48)
123 + 0.2f * density2(x/48, y/48, z/24)
124 - apow( strand1a(x/24,y/24,z/12)
125 +0.6f*strand1b(x/16,y/16,z/8), 0.6f);
126 }
127
128 t_range range() { return t_range(-0.3f-1.33f,0.3f); }
129};

Callers 4

operator()Method · 0.45
operator()Method · 0.45
operator()Method · 0.45
prepare_arenaMethod · 0.45

Calls 1

apowFunction · 0.85

Tested by

no test coverage detected