fromSNorm

fun fromSNorm(value: Double, rangeMaximum: Double? = definedExternally): Double(source)

Converts a SNORM value in the range 0, rangeMaximum to a scalar in the range -1.0, 1.0.

Return

Scalar in the range -1.0, 1.0.

Parameters

value

SNORM value in the range 0, rangeMaximum

rangeMaximum

The maximum value in the SNORM range, 255 by default. Default value - 255

See also