-
Notifications
You must be signed in to change notification settings - Fork 2
DataTypes: Quaternion.hpp
Alanzote edited this page Dec 25, 2018
·
1 revision
Quaternions are used for object rotation in LEGO Universe. A Quaternion is composed of 4 float values: x, y, z and w. A nice explanation of Quaternion can be found in Wikipedia.
- No Parameters
- Creates an empty quaternion.
-
floatx,floaty,floatz,floatw- Creates a Quaternino with values.
- isNull
- Return Type:
bool - Comment: Wheather this Quaternion is null.
- Return Type:
- rotateX
- Return Type:
void - Input Type:
floatradians - Comment: Wrapper that calls static rotateX.
- Return Type:
- rotateY
- Return Type:
void - Input Type:
floatradians - Comment: Wrapper that calls static rotateY.
- Return Type:
- rotateZ
- Return Type:
void - Input Type:
floatradians - Comment: Wrapper that calls static rotateZ.
- Return Type:
- normalize
- Return Type:
void - Comment: Normalizes the Quaternion.
- Return Type:
- yaw
- Return Type:
float - Comment: Returns the yaw of this Quaternion.
- Return Type:
- rotateX
- Return Type:
void - Input Types:
Quaternion,floatradians - Comment: Rotates a Quaternion on X axis.
- Return Type:
- rotateY
- Return Type:
void - Input Types:
Quaternion,floatradians - Comment: Rotates a Quaternion on Y axis.
- Return Type:
- rotateZ
- Return Type:
void - Input Types:
Quaternion,floatradians - Comment: Rotates a Quaternion on Z axis.
- Return Type:
- makeString
- Return Type:
std::string - Comment: Transforms a Quaternion into a string.
- Return Type:
- slerp
- Return Type:
float - Input Types:
Quaternionq1,Quaternionq2,floatprogress,floataccuracy threshold - Comment: Slerps the Quaternion.
- Return Type:
- invert
- Return Type:
Quaternion - Input Type:
Quaternion - Comment: Inverts the Specified Quaternion.
- Return Type:
- dotProduct
- Return Type:
float - Input Types:
Quaternionq1,Quaternionq2 - Comment: Calculates the dot product between two quaternions.
- Return Type:
- length
- Return Type:
float - Input Type:
Quaternion - Comment: Returns the Length of the Quaternion.
- Return Type:
- fromAxisAngle
- Return Type:
Quaternion - Input Types:
Vector3axis,floatangle - Comment: Creates a new Quaternion with axis and angle.
- Return Type:
- fromRotationMatrix
- Return Type:
Quaternion - Input Types:
float* - Comment: Creates a new Quaternion with rotation matrix.
- Return Type:
- toQuaternion
- Return Type:
Quaternion - Input Type:
Vector3 - Comment: Transforms a Vector3 into a Quaternion.
- Return Type:
- toEuler
- Return Type:
Vector3 - Input Type:
Quaternion& - Comment: Transforms a Quaternion into an Euler Vector3.
- Return Type:
- betweenPoints
- Return Type:
Quaternion - Input Types:
Vector3origin,Vector3destination - Comment: Returns a rotation value between two Vector3 points.
- Return Type:
Quaternion supports the following operators: * (Quaternion, float and Vector3), +, =, *=.
- Home
- Common
- Data Types
- Enums
- Entity
- Components
- Interface
- GameObject.hpp
- Components
- File Types
- Game Cache
- Interface
- BehaviorParameter.hpp