init method

void init(
  1. num x0,
  2. num x1,
  3. num t0,
  4. num t1,
)

Implementation

void init(num x0, num x1, num t0, num t1) {
  c0 = x0;
  c1 = t0;
  c2 = -3 * x0 + 3 * x1 - 2 * t0 - t1;
  c3 = 2 * x0 - 2 * x1 + t0 + t1;
}