Class Index | File Index

Classes


Class Quaternion

Represents a quaternion.
Defined in: benchgl.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Quaternion(a, b, c, d)
Creates a new Quaternion.
Method Summary
Method Attributes Method Name and Description
 
$multiply(quat)
Multiplies this Quaternion with another one.
<static>  
Quaternion.FromEulerAngles(pitch, roll, yaw)
Creates a new quaternion from euler angles.
 
Sets this Quaternion as the identity quaternion.
 
multiply(quat)
Multiplies this Quaternion with another one.
 
Gets a Matrix4 representing this Quaternion.
Class Detail
Quaternion(a, b, c, d)
Creates a new Quaternion.
Parameters:
{Number} a
The scalar part.
{Number} b
The i component of the vector part.
{Number} c
The j component of the vector part.
{Number} d
The k component of the vector part.
Method Detail
{Quaternion} $multiply(quat)
Multiplies this Quaternion with another one. Affects this Quaternion.
Parameters:
{Quaternion} quat
The Quaternion to multiply with.
Returns:
{Quaternion} This Quaternion now stores the result of the multiplication.

<static> {Quaternion} Quaternion.FromEulerAngles(pitch, roll, yaw)
Creates a new quaternion from euler angles.
Parameters:
pitch
roll
yaw
Returns:
{Quaternion} A new quaternion from the euler angles.

{Quaternion} identity()
Sets this Quaternion as the identity quaternion.
Returns:
{Quaternion} This Quaternion is now the identity quaternion.

{Quaternion} multiply(quat)
Multiplies this Quaternion with another one. Does not affect this Quaternion.
Parameters:
{Quaternion} quat
The Quaternion to multiply with.
Returns:
{Quaternion} A new quaternion containing the multiplication's result.

{Matrix4} toMatrix4()
Gets a Matrix4 representing this Quaternion.
Returns:
{Matrix4} A matrix representing this Quaternion.

Documentation generated by JsDoc Toolkit 2.4.0 on Thu May 19 2011 00:47:49 GMT+0200 (CEST)