Modify BezierCurve.prototype.getPoints