Modify BezierCurve.prototype.getPoint