lerp()
Math / CalculationDescription
Calculates a number between two numbers at a specific increment. amt 0.0 returns a, amt 1.0 returns b.
Syntax
float lerp(float a, float b, float t)
Parameters
| Name | Type | Description |
|---|---|---|
| a | float | first value |
| b | float | second value |
| t | float | between 0.0 and 1.0 |
Returns
floatRelated
Under the Hood
Implementation in Processing.h / Processing.cpp:
Loading...