C# Class CSharpGL.Quaternion

Quaternion
Exibir arquivo Open project: bitzhuwei/CSharpGL

Public Methods

Method Description
Parse ( float &angleDegree, vec3 &axis ) : void

Quaternion ( float angleDegree, vec3 axis ) : System

Quaternion from a rotation angle and axis.

ToRotationMatrix ( ) : mat3

Transform this quaternion to equivalent matrix.

ToString ( ) : string

Private Methods

Method Description
Quaternion ( float w, float x, float y, float z ) : System

Quaternion

Method Details

Parse() public method

public Parse ( float &angleDegree, vec3 &axis ) : void
angleDegree float
axis vec3
return void

Quaternion() public method

Quaternion from a rotation angle and axis.
public Quaternion ( float angleDegree, vec3 axis ) : System
angleDegree float
axis vec3
return System

ToRotationMatrix() public method

Transform this quaternion to equivalent matrix.
public ToRotationMatrix ( ) : mat3
return mat3

ToString() public method

public ToString ( ) : string
return string