Browse Source

Correct documentation for math::interpolateLinear.

tags/v1.1.5
Andrew Belt 5 years ago
parent
commit
40b258e84f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      include/math.hpp

+ 1
- 1
include/math.hpp View File

@@ -147,7 +147,7 @@ inline float crossfade(float a, float b, float p) {
} }


/** Linearly interpolates an array `p` with index `x`. /** Linearly interpolates an array `p` with index `x`.
Assumes that the array at `p` is of length at least `floor(x) + 1`.
The array at `p` must be at least length `floor(x) + 2`.
*/ */
inline float interpolateLinear(const float* p, float x) { inline float interpolateLinear(const float* p, float x) {
int xi = x; int xi = x;


Loading…
Cancel
Save