Calculates the rounding of a quaternion.
// Returns 1 + 2i + 3j + 4kconst rounded = Chalkboard.quat.round(Chalkboard.quat.init(0.6, 2.3, 2.7, 4.1)); Copy
// Returns 1 + 2i + 3j + 4kconst rounded = Chalkboard.quat.round(Chalkboard.quat.init(0.6, 2.3, 2.7, 4.1));
The quaternion
Calculates the rounding of a quaternion.
Example