A bezier curve to to, where heading1 and heading2 are the control points relative to the current point, and to respectively.