Contents

UnitCurve

A function defined by a two-dimensional curve that maps an input progress in the range [0,1] to an output progress that is also in the range [0,1]. By changing the shape of the curve, the effective speed of an animation or other interpolation can be changed.

Declaration

struct UnitCurve

Overview

The horizontal (x) axis defines the input progress: a single input progress value in the range [0,1] must be provided when evaluating a curve.

The vertical (y) axis maps to the output progress: when a curve is evaluated, the y component of the point that intersects the input progress is returned.

Topics

Getting a linear curve

Getting easing curves

Creating a general Bezier curve

Inverting a curve

Getting curve characteristics

Deprecated symbols

See Also

Creating custom animations