MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / byteToFloat

Function byteToFloat

source/core/StarMathCommon.hpp:304–306  ·  view source on GitHub ↗

Used in color conversion from uint8_t to normalized float.

Source from the content-addressed store, hash-verified

302
303// Used in color conversion from uint8_t to normalized float.
304inline float byteToFloat(uint8_t val) {
305 return val / 255.0f;
306}
307
308// Turn a randomized floating point value from [0.0, 1.0] to [-1.0, 1.0]
309template <typename Float>

Callers 10

liquidLevelMethod · 0.85
v3bToFloatMethod · 0.85
v4bToFloatMethod · 0.85
processImageOperationFunction · 0.85
renderMethod · 0.85
adjustLightingMethod · 0.85
doRenderGlyphMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected