C# Class Protogame.ConversionExtensions

Provides extension methods for converting between Jitter and XNA / MonoGame data structures.
This is from the Jitter demo code.
Mostra file Open project: RedpointGames/Protogame

Public Methods

Method Description
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.

Method Details

ToJitterMatrix() public static method

Convert the XNA matrix to a Jitter matrix.
public static ToJitterMatrix ( this matrix ) : Jitter.LinearMath.JMatrix
matrix this The XNA matrix.
return Jitter.LinearMath.JMatrix

ToJitterQuaternion() public static method

Converts the XNA quaternion to an Jitter quaternion.
public static ToJitterQuaternion ( this quat ) : JQuaternion
quat this The XNA quaternion.
return Jitter.LinearMath.JQuaternion

ToJitterVector() public static method

Convert the XNA vector to a Jitter vector.
public static ToJitterVector ( this vector ) : Jitter.LinearMath.JVector
vector this The XNA vector.
return Jitter.LinearMath.JVector

ToXNAMatrix() public static method

Convert the Jitter matrix to an XNA matrix.
public static ToXNAMatrix ( this matrix ) : Matrix
matrix this The Jitter matrix.
return Microsoft.Xna.Framework.Matrix

ToXNAQuaternion() public static method

Converts the Jitter quaternion to an XNA quaternion.
public static ToXNAQuaternion ( this quat ) : Microsoft.Xna.Framework.Quaternion
quat this The Jitter quaternion.
return Microsoft.Xna.Framework.Quaternion

ToXNAVector() public static method

Converts the Jitter vector to an XNA vector.
public static ToXNAVector ( this vector ) : Microsoft.Xna.Framework.Vector3
vector this The Jitter vector.
return Microsoft.Xna.Framework.Vector3