A curve that can be saved and re-used for other objects. By default, it ranges between [code]0[/code] and [code]1[/code] on the Y axis and positions points relative to the [code]0.5[/code] Y position.
Adds a point to the curve. For each side, if the [code]*_mode[/code] is [constant TANGENT_LINEAR], the [code]*_tangent[/code] angle (in degrees) uses the slope of the curve halfway to the adjacent point. Allows custom assignments to the [code]*_tangent[/code] angle if [code]*_mode[/code] is set to [constant TANGENT_FREE].
</description>
</method>
<methodname="bake">
<returntype="void"/>
<description>
Recomputes the baked cache of points for the curve.
</description>
</method>
<methodname="clean_dupes">
<returntype="void"/>
<description>
Removes points that are closer than [code]CMP_EPSILON[/code] (0.00001) units to their neighbor on the curve.
</description>
</method>
<methodname="clear_points">
<returntype="void"/>
<description>
Removes all points from the curve.
</description>
</method>
<methodname="get_point_count"qualifiers="const">
<returntype="int"/>
<description>
Returns the number of points describing the curve.
Returns the right tangent angle (in degrees) for the point at [code]index[/code].
</description>
</method>
<methodname="interpolate"qualifiers="const">
<returntype="float"/>
<argumentindex="0"name="offset"type="float"/>
<description>
Returns the Y value for the point that would exist at the X position [code]offset[/code] along the curve.
</description>
</method>
<methodname="interpolate_baked">
<returntype="float"/>
<argumentindex="0"name="offset"type="float"/>
<description>
Returns the Y value for the point that would exist at the X position [code]offset[/code] along the curve using the baked cache. Bakes the curve's points if not already baked.
</description>
</method>
<methodname="remove_point">
<returntype="void"/>
<argumentindex="0"name="index"type="int"/>
<description>
Removes the point at [code]index[/code] from the curve.