MathUtils.remap
FunctionMap floating-point v from range [inMin, inMax] to [outMin, outMax].
- Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.
remap(
v,inMin,inMax,outMin,outMax):number
Map floating-point v from range [inMin, inMax] to [outMin, outMax].
Parameters
| Parameter | Type |
|---|---|
v | number |
inMin | number |
inMax | number |
outMin | number |
outMax | number |
Returns
number