Calculates a quaternion with the inputted magnitude.
// Returns 0.3651 + 0.7303i + 1.0954j + 1.4606kconst normscl = Chalkboard.quat.magset(Chalkboard.quat.init(1, 2, 3, 4), 2); Copy
// Returns 0.3651 + 0.7303i + 1.0954j + 1.4606kconst normscl = Chalkboard.quat.magset(Chalkboard.quat.init(1, 2, 3, 4), 2);
The quaternion
The magnitude to set to
Calculates a quaternion with the inputted magnitude.
Example