Quantization.quantize Function

Return pos quantized to the range [origin, origin + rangeScale].

quantize(pos: number, origin: number, scale: number, rangeScale: number = rangeScale16): number

see Quantization.unquantize for the inverse operation.

Parameter Type Description
pos number  
origin number  
scale number  
rangeScale number  

Returns - number

Defined in

Last Updated: 12 June, 2024