{{newin|[[0.9.0]]|090|type=function}}
Evaluate Bézier curve at parameter t. The parameter must be between 0 and 1 (inclusive).

This function can be used to move objects along paths or tween parameters. However it should not be used to render the curve, see [[BezierCurve:render]] for that purpose.

== Function ==
=== Synopsis ===
<source lang="lua">
x,y = BezierCurve:evaluate(t)
</source>
=== Arguments ===
{{param|number|t|Where to evaluate the curve.}}
=== Returns ===
{{param|number|x|x coordinate of the curve at parameter t.}}
{{param|number|y|y coordinate of the curve at parameter t.}}
== See Also ==
* [[parent::BezierCurve]]
* [[BezierCurve:render]]
* [[love.math]]
* [https://love2d.org/forums/viewtopic.php?f=4&t=83825 Bezier Curves, how to trace a line? - LÖVE forum]

[[Category:Functions]]
{{#set:Description=Evaluate Bézier curve at parameter t.}}

== Other Languages ==
{{i18n|BezierCurve:evaluate}}