Class AnimationKeyframe
- 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
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
Transform
Gets or sets the position described by this keyframe.
public Matrix Transform { get; set; }
Property Value
Methods
CompareTo(AnimationKeyframe)
Compares this instance of a keyframe to another.
public int CompareTo(AnimationKeyframe other)
Parameters
other
AnimationKeyframeKeyframe being compared to.
Returns
- int
Indication of their relative values.