e2 docs quaternion - wiremod/wire GitHub Wiki
Creates a zero quaternion (1 ops)
Creates a quaternion with real part equal to N (1 ops)
Creates a quaternion with real and "i" parts equal to C (1 ops)
Converts a vector to a quaternion (returns V.xi + V.yj + V.z*k) (1 ops)
Returns N+N2i+N3j+N4k (1 ops)
Converts A to a quaternion (6 ops)
Creates a quaternion given forward (V) and up (V2) vectors (15 ops)
Converts angle of E to a quaternion (15 ops)
Returns quaternion i (1 ops)
Returns quaternion N*i (1 ops)
Returns j (1 ops)
Returns N*j (1 ops)
Returns k (1 ops)
Returns N*k (1 ops)
Returns absolute value of Q (4 ops)
Returns the conjugate of Q (4 ops)
Returns the inverse of Q (4 ops)
Returns the real component of the quaternion (1 ops)
Returns the i component of the quaternion (1 ops)
Returns the j component of the quaternion (1 ops)
Returns the k component of the quaternion (1 ops)
Raises Euler's constant e to the power Q (7 ops)
Calculates natural logarithm of Q (7 ops)
Changes quaternion Q so that the represented rotation is by an angle between 0 and 180 degrees (by coder0xff) (2 ops)
Performs spherical linear interpolation between Q and Q2. Returns Q for N=0, Q2 for N=1 (13 ops)
Performs linear interpolation between Q and Q2. Returns normalized Q for N=0, Q2 for N=1. (13 ops)
Returns vector pointing forward for Q (7 ops)
Returns vector pointing right for Q (7 ops)
Returns vector pointing up for Q (7 ops)
Returns quaternion for rotation about axis V by angle N (9 ops)
Construct a quaternion from the rotation vector V. Vector direction is axis of rotation, magnitude is angle in degress (by coder0xff) (9 ops)
Returns the angle of rotation in degrees (by coder0xff) (9 ops)
Returns the axis of rotation (by coder0xff) (9 ops)
Returns the rotation vector - rotation axis where magnitude is the angle of rotation in degress (by coder0xff) (9 ops)
Converts Q to a vector by dropping the real component (3 ops)
Converts Q to a transformation matrix (15 ops)
Returns angle represented by Q (15 ops)
Returns new normalized quaternion for Q (15 ops)
Returns dot product of Q with Q2 (15 ops)
Formats Q as a string (15 ops)
Formats Q as a string (15 ops)