Function catmullRom(pt1: Vec2, m1: Vec2, m2: Vec2, pt2: Vec2): (t: number) => Vec2 A second order function returning an evaluator for the given 2D Catmull-Rom curve param pt1 - Previous pointparam m1 - First pointparam m2 - Second pointparam pt2 - Next pointreturns A function which gives the value on the 2D Catmull-Rom curve at t