ColladaXna.Base.Animation.JointAnimationKeyFrame.JointAnimationKeyFrame C# (CSharp) Method

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
        public JointAnimationKeyFrame(float time, Matrix transform)
        {
            _time = time;

            if (!transform.Decompose(out _scale, out _rotation, out _translation))
            {
                throw new ApplicationException("Could not decompose transformation matrix");
            }

            _transform = transform;
        }

Same methods

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