{{newin|[[0.9.0]]|090|type=function}}
Insert control point as the new i-th control point. Existing control points from i onwards are pushed back by 1. Indices start with 1. Negative indices wrap around: -1 is the last control point, -2 the one before the last, etc.

== Function ==
=== Synopsis ===
<source lang="lua">
BezierCurve:insertControlPoint( x, y, i )
</source>
=== Arguments ===
{{param|number|x|Position of the control point along the x axis.}}
{{param|number|y|Position of the control point along the y axis.}}
{{param|number|i (-1)|Index of the control point.}}
=== Returns ===
Nothing.
== See Also ==
* [[parent::BezierCurve]]
* [[BezierCurve:getDegree]]
* [[BezierCurve:getControlPoint]]
* [[BezierCurve:setControlPoint]]
* [[love.math]]
[[Category:Functions]]
{{#set:Description=Insert control point after the i-th control point.}}
== Other Languages ==
{{i18n|BezierCurve:insertControlPoint}}