MCPcopy Create free account
hub / github.com/chrxh/alien / readEnergy

Function readEnergy

source/EngineInterface/GenomeDescriptionService.cpp:119–122  ·  view source on GitHub ↗

between 36 and 1060

Source from the content-addressed store, hash-verified

117 }
118 //between 36 and 1060
119 float readEnergy(std::vector<uint8_t> const& data, int& pos)
120 {
121 return readFloat(data, pos) * 100 + 150.0f;
122 }
123 //between 0 and 1
124 float readDensity(std::vector<uint8_t> const& data, int& pos)
125 {

Callers 1

Calls 1

readFloatFunction · 0.85

Tested by

no test coverage detected