Linearly interpolates between `a` and `b`, from `p = 0` to `p = 1`. */
| 155 | /** Linearly interpolates between `a` and `b`, from `p = 0` to `p = 1`. |
| 156 | */ |
| 157 | inline float crossfade(float a, float b, float p) { |
| 158 | return a + (b - a) * p; |
| 159 | } |
| 160 | |
| 161 | /** Linearly interpolates an array `p` with index `x`. |
| 162 | The array at `p` must be at least length `floor(x) + 2`. |
no outgoing calls
no test coverage detected