Search Results for

    Show / Hide Table of Contents

    Class AnimationCurve

    A key for a vector.

    Inheritance
    object
    AnimationCurve
    AnimationCurve<T>
    Namespace: Evergine.Framework.Animation
    Assembly: Evergine.Framework.dll
    Syntax
    public abstract class AnimationCurve

    Fields

    Duration

    The animation's duration.

    Declaration
    public float Duration
    Field Value
    Type Description
    float

    TimeKeySnap

    Snap key when its time is in the range between the start and end of the range.

    Declaration
    protected const double TimeKeySnap = 0.0010000000474974513
    Field Value
    Type Description
    double

    Properties

    DefaultValue

    Gets or sets the default value.

    Declaration
    public abstract object DefaultValue { get; set; }
    Property Value
    Type Description
    object

    EvaluatedType

    Gets the type that is evaluated.

    Declaration
    public abstract Type EvaluatedType { get; }
    Property Value
    Type Description
    Type

    Evaluator

    Gets the curve value evaluator.

    Declaration
    public abstract AnimationCurveEvaluator Evaluator { get; }
    Property Value
    Type Description
    AnimationCurveEvaluator

    Methods

    AddValue(ref object)

    Subtract value.

    Declaration
    public abstract void AddValue(ref object refValue)
    Parameters
    Type Name Description
    object refValue

    The reference value.

    Clone()

    Clones the channel.

    Declaration
    public abstract AnimationCurve Clone()
    Returns
    Type Description
    AnimationCurve

    The cloned channel.

    GetKeysAtTime(float, out int, out int)

    Gets a position value.

    Declaration
    public abstract float GetKeysAtTime(float time, out int aKeyID, out int bKeyID)
    Parameters
    Type Name Description
    float time

    The time.

    int aKeyID

    The A key index.

    int bKeyID

    The B key index.

    Returns
    Type Description
    float

    Parametric value indicating how far along the gap between the two keyframes the timeIndex value is, e.g., 0.0 for exactly at one, 0.25 for a quarter, etc.

    GetValue(float, ref object)

    Gets a value.

    Declaration
    public abstract void GetValue(float time, ref object result)
    Parameters
    Type Name Description
    float time

    The time.

    object result

    The value at the specified time.

    SubChannel(float, float)

    Returns the channel fragment.

    Declaration
    public abstract AnimationCurve SubChannel(float startTime, float endTime)
    Parameters
    Type Name Description
    float startTime

    The start time.

    float endTime

    The end time.

    Returns
    Type Description
    AnimationCurve

    The subchannel.

    TestFramerate(float)

    Tests if this curve follows the specified framerate.

    Declaration
    public abstract float TestFramerate(float framerate)
    Parameters
    Type Name Description
    float framerate

    The framerate.

    Returns
    Type Description
    float

    The curve's framerate.

    Write(BinaryWriter)

    Writes an animation keyframe channel.

    Declaration
    public abstract void Write(BinaryWriter writer)
    Parameters
    Type Name Description
    BinaryWriter writer

    The binary writer.

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX