Quantization.quantize Function
Return pos
quantized to the range [origin
, origin + rangeScale
].
quantize(pos: number, origin: number, scale: number, rangeScale: numberrangeScale16): number
@see 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: 17 December, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.