Table of Contents

Class AnimationKeyframe

Namespace
Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly
MonoGame.Framework.Content.Pipeline.dll

Provides methods and properties for managing a keyframe. A keyframe describes the position of an animation channel at a single point in time.

public sealed class AnimationKeyframe : IComparable<AnimationKeyframe>
Inheritance
AnimationKeyframe
Implements
Inherited Members

Constructors

AnimationKeyframe(TimeSpan, Matrix)

Initializes a new instance of AnimationKeyframe with the specified time offsetand transform.

public AnimationKeyframe(TimeSpan time, Matrix transform)

Parameters

time TimeSpan

Time offset of the keyframe.

transform Matrix

Position of the keyframe.

Properties

Time

Gets the time offset from the start of the animation to the position described by this keyframe.

public TimeSpan Time { get; }

Property Value

TimeSpan

Transform

Gets or sets the position described by this keyframe.

public Matrix Transform { get; set; }

Property Value

Matrix

Methods

CompareTo(AnimationKeyframe)

Compares this instance of a keyframe to another.

public int CompareTo(AnimationKeyframe other)

Parameters

other AnimationKeyframe

Keyframe being compared to.

Returns

int

Indication of their relative values.