intNormalizedSqrt

Calculates the square root of the normalized value representated by the input integer number.

Normalization: [0x00 .. 0xFF][0.0 .. 1.0]

@safe pure nothrow @nogc
ubyte
intNormalizedSqrt
(
const ubyte value
)

Return Value

Type: ubyte

sqrt(value / 255f) * 255

Meta