Calculates the negation of a quaternion.
// Returns -1 - 2i - 3j - 4kconst negated = Chalkboard.quat.negate(Chalkboard.quat.init(1, 2, 3, 4)); Copy
// Returns -1 - 2i - 3j - 4kconst negated = Chalkboard.quat.negate(Chalkboard.quat.init(1, 2, 3, 4));
The quaternion
Calculates the negation of a quaternion.
Example