Creates a new animation curve.
Optionalkeyframes: readonly Immutable<KeyFrameVec2>[]If TKeyframe<TVector2
OptionalisInternalConstructor: booleanReturns a list of all keyframes in the curve.
Evaluate the animation curve at the specified time. If evaluating multiple values in a sequential order consider using the cached version of evaluate() for better performance.
%Time to evaluate the curve at.
Optionalloop: booleanIf true the curve will loop when it goes past the end or beggining. Otherwise the curve value will be clamped.
Interpolated value from the curve at provided time.
Compares the current animation curve against another one.
Animation spline represented by a set of keyframes, each representing an endpoint of a cubic hermite curve. The spline can be evaluated at any time, and uses caching to speed up multiple sequential evaluations.
Note
Curves are expected to be immutable for threading purposes