C# Класс Protogame.ConversionExtensions

Provides extension methods for converting between Jitter and XNA / MonoGame data structures.
This is from the Jitter demo code.
Показать файл Открыть проект

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

Метод Описание
ToJitterMatrix ( this matrix ) : Jitter.LinearMath.JMatrix

Convert the XNA matrix to a Jitter matrix.

ToJitterQuaternion ( this quat ) : JQuaternion

Converts the XNA quaternion to an Jitter quaternion.

ToJitterVector ( this vector ) : Jitter.LinearMath.JVector

Convert the XNA vector to a Jitter vector.

ToXNAMatrix ( this matrix ) : Matrix

Convert the Jitter matrix to an XNA matrix.

ToXNAQuaternion ( this quat ) : Microsoft.Xna.Framework.Quaternion

Converts the Jitter quaternion to an XNA quaternion.

ToXNAVector ( this vector ) : Microsoft.Xna.Framework.Vector3

Converts the Jitter vector to an XNA vector.

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

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

Convert the XNA matrix to a Jitter matrix.
public static ToJitterMatrix ( this matrix ) : Jitter.LinearMath.JMatrix
matrix this The XNA matrix.
Результат Jitter.LinearMath.JMatrix

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

Converts the XNA quaternion to an Jitter quaternion.
public static ToJitterQuaternion ( this quat ) : JQuaternion
quat this The XNA quaternion.
Результат Jitter.LinearMath.JQuaternion

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

Convert the XNA vector to a Jitter vector.
public static ToJitterVector ( this vector ) : Jitter.LinearMath.JVector
vector this The XNA vector.
Результат Jitter.LinearMath.JVector

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

Convert the Jitter matrix to an XNA matrix.
public static ToXNAMatrix ( this matrix ) : Matrix
matrix this The Jitter matrix.
Результат Microsoft.Xna.Framework.Matrix

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

Converts the Jitter quaternion to an XNA quaternion.
public static ToXNAQuaternion ( this quat ) : Microsoft.Xna.Framework.Quaternion
quat this The Jitter quaternion.
Результат Microsoft.Xna.Framework.Quaternion

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

Converts the Jitter vector to an XNA vector.
public static ToXNAVector ( this vector ) : Microsoft.Xna.Framework.Vector3
vector this The Jitter vector.
Результат Microsoft.Xna.Framework.Vector3