A mathematical curve. This resource describes a mathematical curve by defining a set of points and tangents at each point. 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. See also [Gradient] which is designed for color interpolation. See also [Curve2D] and [Curve3D]. 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]. Recomputes the baked cache of points for the curve. Removes duplicate points, i.e. points that are less than 0.00001 units (engine epsilon value) away from their neighbor on the curve. Removes all points from the curve. Returns the left [enum TangentMode] for the point at [param index]. Returns the left tangent angle (in degrees) for the point at [param index]. Returns the curve coordinates for the point at [param index]. Returns the right [enum TangentMode] for the point at [param index]. Returns the right tangent angle (in degrees) for the point at [param index]. Removes the point at [param index] from the curve. Returns the Y value for the point that would exist at the X position [param offset] along the curve. Returns the Y value for the point that would exist at the X position [param offset] along the curve using the baked cache. Bakes the curve's points if not already baked. Sets the left [enum TangentMode] for the point at [param index] to [param mode]. Sets the left tangent angle for the point at [param index] to [param tangent]. Sets the offset from [code]0.5[/code]. Sets the right [enum TangentMode] for the point at [param index] to [param mode]. Sets the right tangent angle for the point at [param index] to [param tangent]. Assigns the vertical position [param y] to the point at [param index]. The number of points to include in the baked (i.e. cached) curve data. The maximum value the curve can reach. The minimum value the curve can reach. The number of points describing the curve. Emitted when [member max_value] or [member min_value] is changed. The tangent on this side of the point is user-defined. The curve calculates the tangent on this side of the point as the slope halfway towards the adjacent point. The total number of available tangent modes.