C# Class CSharpGL.ModelMatrixHelper

treat mat4 as a matrix that transform object from model's space to world's space.
Mostrar archivo Open project: bitzhuwei/CSharpGL

Public Methods

Method Description
GetTranslate ( this matrix ) : vec3

Gets translate factor in specified matrix.

ToQuaternion ( this matrix ) : Quaternion

Gets rotate factor in specified matrix.

vec4.w means angle in radius, (vec4.x, vec4.y, vec4.z) means rotation axis.

Method Details

GetTranslate() public static method

Gets translate factor in specified matrix.
public static GetTranslate ( this matrix ) : vec3
matrix this
return vec3

ToQuaternion() public static method

Gets rotate factor in specified matrix.

vec4.w means angle in radius, (vec4.x, vec4.y, vec4.z) means rotation axis.

public static ToQuaternion ( this matrix ) : Quaternion
matrix this
return Quaternion