Calculates the subtraction of two quaternions.
// Returns -1 - 1i - 1j - 1kconst difference = Chalkboard.quat.sub(Chalkboard.quat.init(1, 2, 3, 4), Chalkboard.quat.init(2, 3, 4, 5)); Copy
// Returns -1 - 1i - 1j - 1kconst difference = Chalkboard.quat.sub(Chalkboard.quat.init(1, 2, 3, 4), Chalkboard.quat.init(2, 3, 4, 5));
The first quaternion
The second quaternion
Calculates the subtraction of two quaternions.
Example