norm()
Math / CalculationDescription
Normalizes a number from a range into a value between 0.0 and 1.0.
Syntax
float norm(float v, float lo, float hi)
Parameters
| Name | Type | Description |
|---|---|---|
| v | float | incoming value |
| lo | float | lower bound |
| hi | float | upper bound |
Returns
floatRelated
Under the Hood
Implementation in Processing.h / Processing.cpp:
Loading...