Rotation in three dimensions
This application calculates the three-dimensional rotation of a point around an arbitrary axis.
In three dimensions, the rotation axis can be determined from a directed line or a direction vector
and a (fixed) point which goes through.
The rotation is calculated using quaternion as follows.
Let and be (pure imaginary) quaternions with and as vector parts, be the angle of rotation (positive for counterclockwise rotation),
and unit quaternion of defined as then 3D rotation is calculated from the formula
Note that for unit quaternion , the quaternion conjugate of .
3D Rotation Calculator