initCatmullRom method

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

Implementation

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