trilerp function

double trilerp(
  1. double v1,
  2. double v2,
  3. double v3,
  4. double v4,
  5. double v5,
  6. double v6,
  7. double v7,
  8. double v8,
  9. double x,
  10. double y,
  11. double z,
)

Implementation

double trilerp(double v1, double v2, double v3, double v4, double v5, double v6,
        double v7, double v8, double x, double y, double z) =>
    lerp(blerp(v1, v2, v3, v4, x, y), blerp(v5, v6, v7, v8, x, y), z);