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

Function readAngle

source/EngineInterface/GenomeDescriptionService.cpp:114–117  ·  view source on GitHub ↗

between -180 and 180

Source from the content-addressed store, hash-verified

112 }
113 //between -180 and 180
114 float readAngle(std::vector<uint8_t> const& data, int& pos)
115 {
116 return static_cast<float>(static_cast<int8_t>(readByte(data, pos))) / 120 * 180;
117 }
118 //between 36 and 1060
119 float readEnergy(std::vector<uint8_t> const& data, int& pos)
120 {

Callers 1

Calls 1

readByteFunction · 0.85

Tested by

no test coverage detected