initCatmullRom method

void initCatmullRom(
  1. num x0,
  2. num x1,
  3. num x2,
  4. num x3,
  5. num tension,
)

Implementation

void initCatmullRom(num x0, num x1, num x2, num x3, num tension) {
  init(x1, x2, tension * (x2 - x0), tension * (x3 - x1));
}