Function bezier(pt1: Vec2, pt2: Vec2, pt3: Vec2, pt4: Vec2): (t: number) => Vec2 A second order function returning an evaluator for the given 2D quadratic Bezier curve param pt1 - First pointparam pt2 - First control pointparam pt3 - Second control pointparam pt4 - Second pointreturns A function which gives the value on the 2D quadratic Bezier curve at t