Calculates the magnitude of a quaternion.

// Returns 5.4772
const r = Chalkboard.quat.mag(Chalkboard.quat.init(1, 2, 3, 4));