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

Function readStiffness

source/EngineInterface/GenomeDescriptionService.cpp:133–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131 return toFloat(readByte(data, pos)) / 255 + 0.5f;
132 }
133 float readStiffness(std::vector<uint8_t> const& data, int& pos)
134 {
135 return toFloat(readByte(data, pos)) / 255;
136 }
137
138 std::variant<MakeGenomeCopy, std::vector<uint8_t>> readGenome(std::vector<uint8_t> const& data, int& pos)
139 {

Callers 1

Calls 2

toFloatFunction · 0.85
readByteFunction · 0.85

Tested by

no test coverage detected