Appearance
KBE3D / KBCore / Cesium / Math / toSNorm
函数: toSNorm()
toSNorm(
value:number,rangeMaximum?:number):number
Converts a scalar value in the range [-1.0, 1.0] to a SNORM in the range [0, rangeMaximum]
参数
value
number
The scalar value in the range [-1.0, 1.0]
rangeMaximum?
number
The maximum value in the mapped range, 255 by default.
返回
number
A SNORM value, where 0 maps to -1.0 and rangeMaximum maps to 1.0.
