C# 클래스 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.
파일 보기 프로젝트 열기: Bunkerbewohner/ColladaXna 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

JointAnimationKeyFrame() 공개 메소드

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
리턴 System

JointAnimationKeyFrame() 공개 메소드

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
리턴 System

Lerp() 공개 정적인 메소드

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
리턴 JointAnimationKeyFrame

LerpTransform() 공개 정적인 메소드

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
리턴 Matrix