Search Results for

    Show / Hide Table of Contents

    Class AnimationCurve<T>

    A vector key.

    Inheritance
    object
    AnimationCurve
    AnimationCurve<T>
    AnimationCurveFloat
    AnimationCurveFloatArray
    AnimationCurveQuaternion
    AnimationCurveVector2
    AnimationCurveVector3
    AnimationCurveVector4
    Inherited Members
    AnimationCurve.TimeKeySnap
    AnimationCurve.Duration
    Namespace: Evergine.Framework.Animation
    Assembly: Evergine.Framework.dll
    Syntax
    public class AnimationCurve<T> : AnimationCurve
    Type Parameters
    Name Description
    T

    The type of the keyframe.

    Constructors

    AnimationCurve()

    Initializes a new instance of the AnimationCurve<T> class.

    Declaration
    public AnimationCurve()

    Fields

    EndTime

    Gets the end time of the curve.

    Declaration
    public float EndTime
    Field Value
    Type Description
    float

    KeyCount

    The number of keys.

    Declaration
    public int KeyCount
    Field Value
    Type Description
    int

    Keyframes

    Array of keys.

    Declaration
    public AnimationKeyframe<T>[] Keyframes
    Field Value
    Type Description
    AnimationKeyframe<T>[]

    StartTime

    Gets the start time of the curve.

    Declaration
    public float StartTime
    Field Value
    Type Description
    float

    defaultValue

    The default value.

    Declaration
    protected T defaultValue
    Field Value
    Type Description
    T

    Properties

    DefaultValue

    Gets or sets the default value.

    Declaration
    public override object DefaultValue { get; set; }
    Property Value
    Type Description
    object
    Overrides
    AnimationCurve.DefaultValue

    EvaluatedType

    Gets the type that is being evaluated.

    Declaration
    public override Type EvaluatedType { get; }
    Property Value
    Type Description
    Type
    Overrides
    AnimationCurve.EvaluatedType

    Evaluator

    Gets the curve value evaluator.

    Declaration
    public override AnimationCurveEvaluator Evaluator { get; }
    Property Value
    Type Description
    AnimationCurveEvaluator
    Overrides
    AnimationCurve.Evaluator

    Methods

    AddValue(ref object)

    Subtract value.

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

    The reference value.

    Overrides
    AnimationCurve.AddValue(ref object)

    Clone()

    Clones the channel.

    Declaration
    public override AnimationCurve Clone()
    Returns
    Type Description
    AnimationCurve

    The cloned channel.

    Overrides
    AnimationCurve.Clone()

    GetKeysAtTime(float, out int, out int)

    Gets a position value.

    Declaration
    public override 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 time index value is, e.g., 0.0 for exactly at one, 0.25 for a quarter, etc.

    Overrides
    AnimationCurve.GetKeysAtTime(float, out int, out int)

    GetValue(int, int, float, ref T)

    Gets a position value.

    Declaration
    public void GetValue(int aKeyID, int bKeyID, float amount, ref T result)
    Parameters
    Type Name Description
    int aKeyID

    The first key.

    int bKeyID

    The second key.

    float amount

    The lerp amount.

    T result

    The final value.

    GetValue(float, ref object)

    Gets a value.

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

    The time.

    object result

    The value at the specified time.

    Overrides
    AnimationCurve.GetValue(float, ref object)

    GetValue(float, ref T)

    Gets a position value.

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

    The time.

    T result

    The final value.

    Read(BinaryReader)

    Reads an animation keyframe channel.

    Declaration
    public static AnimationCurve<T> Read(BinaryReader reader)
    Parameters
    Type Name Description
    BinaryReader reader

    The binary reader.

    Returns
    Type Description
    AnimationCurve<T>

    The animation channel.

    SubChannel(float, float)

    Returns the channel fragment.

    Declaration
    public override 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.

    Overrides
    AnimationCurve.SubChannel(float, float)

    TestFramerate(float)

    Tests if this curve follows the specified framerate.

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

    The framerate.

    Returns
    Type Description
    float

    The curve framerate.

    Overrides
    AnimationCurve.TestFramerate(float)

    Write(BinaryWriter)

    Writes an animation keyframe channel.

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

    The binary writer.

    Overrides
    AnimationCurve.Write(BinaryWriter)

    Extension Methods

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