Converts a quaternion to a typed array.
// Returns a Float32Array [1, 2, 3, 4]const q = Chalkboard.quat.init(1, 2, 3, 4);const qf32 = Chalkboard.quat.toTypedArray(q); Copy
// Returns a Float32Array [1, 2, 3, 4]const q = Chalkboard.quat.init(1, 2, 3, 4);const qf32 = Chalkboard.quat.toTypedArray(q);
The quaternion
Optional
The type of the typed array, which can be "int8", "int16", "int32", "float32", "float64", or "bigint64" (optional, defaults to "float32")
Converts a quaternion to a typed array.
Example