5 #include "VectorMath.h"
11 inline void CatmullRomInterpolationInPlace(
const double t,
const dv3& p0,
const dv3& p1,
const dv3& p2,
const dv3& p3, dv3& out_result)
16 out_result = 0.5 * ((2.0 * p1) +
18 (2.0*p0 - 5.0*p1 + 4.0*p2 - p3) * t2 +
19 (-p0 + 3.0*p1 - 3.0*p2 + p3) * t3);