Calculates the negation of a quaternion.
The 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));
Calculates the negation of a quaternion.