Calculates the absolute value of a quaternion.
// Returns 2 + 3i + 4j + 5kconst q = Chalkboard.quat.absolute(Chalkboard.quat.init(-2, 3, -4, 5)); Copy
// Returns 2 + 3i + 4j + 5kconst q = Chalkboard.quat.absolute(Chalkboard.quat.init(-2, 3, -4, 5));
The quaternion
Calculates the absolute value of a quaternion.
Example