Enum opengex::structure::Value [] [src]

pub enum Value {
    Constant(Vec<f32>),
    Linear(Vec<f32>),
    Bezier(Vec<(f32, f32, f32)>),
    Tcb(Vec<(f32, f32, f32, f32)>),
}

The Value structure contains key value data in an animation track.

There are two different kinds of this structure; one for every curve kind.

The variants in this enum contain vectors. One vector item represents on key value.

Variants

The values are not interpolated, but remain constant until the next key time.

The values are interpolated linearly.

The values are interpolated on a one-dimensional Bezier curve.

The values in each tuple in the vector are the "value", "-control" and "+control" values of the Bezier curve respectively.

The values are interpolated on a tension-continuity-bias (TCB) spline.

The values in each tuple in the vector are the "value", "tension", "bias" and "continuity" values of the TCB spline respecitvely. The data contained in these last three values are always scalar.