(Created page with "The SQuaternion struct contains a simple 4D vector of X, Y, Z and W floats designed to represent rotations with orientation. ==Fields== {{ScriptFunction|float|X|{ get; set; }...") |
(No difference)
|
The SQuaternion struct contains a simple 4D vector of X, Y, Z and W floats designed to represent rotations with orientation.
X axis
Y axis
Z axis
W axis
Initialises quaternion from four floats
Creates a quaternion from 3 Euler floats (i.e. 3x 0-360' angles)
Creates a quaternion from a Angle / Axis pair
Creates a quaternion a forward vector; presuming up is (0,1,0)
Creates a quaternion a forward and up vector pair
Note: Add/Scale/Divide are also implemented as operators (e.g. A + B, A += B)
Returns the Euler rotation for this Quaternion
Rotates a vector by a quaternion
Rotates a quaternion by a quaternion
Returns the angle between two quaternions
Linearly interpolates between this and other quaternion, by factor t and returns the result
Spherically interpolates between this and other quaternion, by factor t and returns the result
Rotates this towards other, by no more than t degrees
Returns the dot product of this and another quaternion
Returns the inverse of this quaternion
Equivalent of new SQuaternion(0,0,0,1)
|