On this page you can found a calculator for quaternion basic calculations.
To perform the calculation select the math function that are to be calculated and enter the quaternion values.
Then click the Calculate button.
Empty fields are counted as 0.
Description
The quaternion structure is used to rotate an object around the (x,y,z) vector by the angle theta, where:
w = cos(theta/2)
Array
W - The rotation component of the quaternion
X - The X value of the vector component of the quaternion.
Y - The Y value of the vector component of the quaternion.
Z - The Z value of the vector component of the quaternion.
Description of the Quaternion functions
Add
Adds to each element in a quaternion the corresponding element in a second quaternion.
Subtract
Subtracts each element in a second quaternion from its corresponding element in a first quaternion.
Multiply
Returns the quaternion resulting from multiplying two quaternions.
Divide
Divides a quaternion by a second quaternion.
Concatenate
Concatenates two quaternions.