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
- core/common/src/QPoint.ts Line 42
Last Updated: 30 November, 2023