Creates a new CurveSet instance.
Variable arguments with several possible formats:
Gets the number of curves in the curve set.
Gets the interpolation scheme applied to all curves in the curve set.
Sets the interpolation scheme applied to all curves in the curve set. Can be:
Defaults to CURVE_SMOOTHSTEP.
Appends a new curve to the curve set. The new curve adopts the curve set's current CurveSet#type interpolation scheme, so that all curves in the set continue to share the same type.
Optionaldata: number[]An array of keys (pairs of numbers with the time first and value second) for the new curve.
The newly created curve.
Removes all keys from every curve in the set, while keeping the curves themselves. The number of curves is unchanged, so CurveSet#value still returns an array of the same length.
The curve set instance.
Returns a clone of the specified curve set object.
A clone of the specified curve set.
Return a specific curve in the curve set.
The index of the curve to return.
The curve at the specified index.
Returns the interpolated value of all curves in the curve set at the specified time.
The time at which to calculate the value.
Optionalresult: number[] = []The interpolated curve values at the specified time. If this parameter is not supplied, the function allocates a new array internally to return the result.
The interpolated curve values at the specified time.
A curve set is a collection of curves.