C# Class ColladaXna.Base.Animation.JointAnimationKeyFrame

A key frame of a joint animation describing the transformation of the joint at a given time. Transform matrices are decomposed for linear interpolation of SRT components.
Datei anzeigen Open project: Bunkerbewohner/ColladaXna Class Usage Examples

Public Methods

Method Description
JointAnimationKeyFrame ( float time, Matrix transform ) : System

Creates a new keyframe from given time and transformation matrix. Since internally the joint transformation is stored in form of its scale, rotation and translation components the matrix has to be decomposed within this constructor.

JointAnimationKeyFrame ( float time, Vector3 scale, Quaternion rotation, Vector3 translation ) : System

Creates a new keyframe from given time and transformations

Lerp ( JointAnimationKeyFrame frame1, JointAnimationKeyFrame frame2, float amount ) : JointAnimationKeyFrame

Linear interpolation of two keyframes. The resulting keyframe will consist of the interpolated time and transformation.

LerpTransform ( JointAnimationKeyFrame frame1, JointAnimationKeyFrame frame2, float amount ) : Matrix

Linear interpolation of two keyframe transformations.

Method Details

JointAnimationKeyFrame() public method

Creates a new keyframe from given time and transformation matrix. Since internally the joint transformation is stored in form of its scale, rotation and translation components the matrix has to be decomposed within this constructor.
public JointAnimationKeyFrame ( float time, Matrix transform ) : System
time float Time of keyframe
transform Matrix Transformation
return System

JointAnimationKeyFrame() public method

Creates a new keyframe from given time and transformations
public JointAnimationKeyFrame ( float time, Vector3 scale, Quaternion rotation, Vector3 translation ) : System
time float Time of keyframe
scale Vector3 Scale
rotation Quaternion Rotation
translation Vector3 Translation
return System

Lerp() public static method

Linear interpolation of two keyframes. The resulting keyframe will consist of the interpolated time and transformation.
public static Lerp ( JointAnimationKeyFrame frame1, JointAnimationKeyFrame frame2, float amount ) : JointAnimationKeyFrame
frame1 JointAnimationKeyFrame One keyframe
frame2 JointAnimationKeyFrame Another keyframe
amount float Weight of the second keyframe between 0.0 and 1.0
return JointAnimationKeyFrame

LerpTransform() public static method

Linear interpolation of two keyframe transformations.
public static LerpTransform ( JointAnimationKeyFrame frame1, JointAnimationKeyFrame frame2, float amount ) : Matrix
frame1 JointAnimationKeyFrame One keyframe
frame2 JointAnimationKeyFrame Another keyframe
amount float Weight of second keyframe between 0.0 and 1.0
return Matrix