Calculates the scalar multiplication of a quaternion.
// Returns 2 + 4i + 6j + 8kconst scaled = Chalkboard.quat.scl(Chalkboard.quat.init(1, 2, 3, 4), 2); Copy
// Returns 2 + 4i + 6j + 8kconst scaled = Chalkboard.quat.scl(Chalkboard.quat.init(1, 2, 3, 4), 2);
The quaternion
The scalar
Calculates the scalar multiplication of a quaternion.
Example