C# Класс FlatRedBall.Graphics.Model.Animation.Content.ContentUtil

Contains utility functions for the content pipeline relating to animation.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CalculateSquareRoot ( Matrix A, int iterations ) : Matrix

Calculates the square root of a matrix.

GetSkinningType ( System elements ) : SkinningType

Gets info on what skinning info a vertex element array contains.

GetSkinningType ( VertexElement elements ) : SkinningType
MergeKeyFrames ( AnimationKeyframe scale, AnimationKeyframe translation, AnimationKeyframe rotation ) : List

Merges scale, translation, and rotation keyframes into matrix keyframes.

ReflectMatrix ( Matrix &m ) : void

Reflects a matrix across the Z axis by multiplying both the Z column and the Z row by -1 such that the Z,Z element stays intact.

SlerpMatrix ( Matrix start, Matrix end, float slerpAmount ) : Matrix

Roughly decomposes two matrices and performs spherical linear interpolation

Приватные методы

Метод Описание
CalculateSquareRoot ( Matrix Y, Matrix Z, int iterations ) : Matrix
InitializeFrames ( AnimationKeyframe &frames ) : void
InterpFrames ( AnimationKeyframe &source, Matrix &dest, IList times ) : void
SortFrames ( AnimationKeyframe &frames ) : void

Описание методов

CalculateSquareRoot() публичный статический Метод

Calculates the square root of a matrix.
public static CalculateSquareRoot ( Matrix A, int iterations ) : Matrix
A Matrix The matrix.
iterations int The number of recursive iterations used by the /// calculation algorithm.
Результат Matrix

GetSkinningType() публичный статический Метод

Gets info on what skinning info a vertex element array contains.
public static GetSkinningType ( System elements ) : SkinningType
elements System The vertex elements.
Результат SkinningType

GetSkinningType() публичный статический Метод

public static GetSkinningType ( VertexElement elements ) : SkinningType
elements Microsoft.Xna.Framework.Graphics.VertexElement
Результат SkinningType

MergeKeyFrames() публичный статический Метод

Merges scale, translation, and rotation keyframes into matrix keyframes.
public static MergeKeyFrames ( AnimationKeyframe scale, AnimationKeyframe translation, AnimationKeyframe rotation ) : List
scale AnimationKeyframe The scale keyframes.
translation AnimationKeyframe The translation keyframes.
rotation AnimationKeyframe The rotation keyframes.
Результат List

ReflectMatrix() публичный статический Метод

Reflects a matrix across the Z axis by multiplying both the Z column and the Z row by -1 such that the Z,Z element stays intact.
public static ReflectMatrix ( Matrix &m ) : void
m Matrix The matrix to be reflected across the Z axis
Результат void

SlerpMatrix() публичный статический Метод

Roughly decomposes two matrices and performs spherical linear interpolation
public static SlerpMatrix ( Matrix start, Matrix end, float slerpAmount ) : Matrix
start Matrix Source matrix for interpolation
end Matrix Destination matrix for interpolation
slerpAmount float Ratio of interpolation
Результат Matrix