Function cardinal(pt1: Vec2, m1: Vec2, m2: Vec2, pt2: Vec2, tension: number): (t: number) => Vec2 A second order function returning an evaluator for the given 2D Cardinal curveparam pt1- Previous pointparam m1- First pointparam m2- Second pointparam pt2- Next pointparam tensionThe tension of the curve, [0..1] from round to tight.returns A function which gives the value on the 2D Cardinal curve at t