Source code for pbrt, the renderer described in the third edition of "Physically Based Rendering: From Theory To Implementation", by Matt Pharr, Wenzel Jakob, and Greg Humphreys.
On page 825 of PBRT, Third Edition, the book writes "The rest of [SampleCatmulRom2D] is identical to SampleCatmullRom except that every access to values[i] is replaced by interpolate(values, i)." In SampleCatmullRom, there aren't actually any calls to values[i].
On page 825 of PBRT, Third Edition, the book writes "The rest of [
SampleCatmulRom2D
] is identical toSampleCatmullRom
except that every access tovalues[i]
is replaced byinterpolate(values, i)
." In SampleCatmullRom, there aren't actually any calls tovalues[i]
.