{{newin|[[0.9.0]]|090|type=function}}
Creates a new [[BezierCurve]] object.

The number of vertices in the control polygon determines the degree of the curve, e.g. three vertices define a quadratic (degree 2) Bézier curve, four vertices define a cubic (degree 3) Bézier curve, etc.

== Function ==
=== Synopsis ===
<source lang="lua">
curve = love.math.newBezierCurve( vertices )
</source>
=== Arguments ===
{{param|table|vertices|The vertices of the control polygon as a table in the form of <code><nowiki>{x1, y1, x2, y2, x3, y3, ...}</nowiki></code>.}}

=== Returns ===
{{param|BezierCurve|curve|A Bézier curve object.}}
== Function ==
=== Synopsis ===
<source lang="lua">
curve = love.math.newBezierCurve( x1, y1, x2, y2, x3, y3, ... )
</source>
=== Arguments ===
{{param|number|x1|The position of the first vertex of the control polygon on the x-axis.}}
{{param|number|y1|The position of the first vertex of the control polygon on the y-axis.}}
{{param|number|x2|The position of the second vertex of the control polygon on the x-axis.}}
{{param|number|y2|The position of the second vertex of the control polygon on the y-axis.}}
{{param|number|x3|The position of the third vertex of the control polygon on the x-axis.}}
{{param|number|y3|The position of the third vertex of the control polygon on the y-axis.}}
=== Returns ===
{{param|BezierCurve|curve|A Bézier curve object.}}
== See Also ==
* [[parent::love.math]]
* [[Constructs::BezierCurve]]
[[Category:Functions]]
{{#set:Description=Creates a new [[BezierCurve]] object.}}
== Other Languages ==
{{i18n|love.math.newBezierCurve}}