new_quaternion: Create a Quaternion instance to store '3D' rotation
Description
Create instances that mimic the 'three.js' syntax.
Usage
new_quaternion(x = 0, y = 0, z = 0, w = 1)as_quaternion(q)
Value
A Quaternion instance
Arguments
- x, y, z, w
numeric of length one
- q
R object to be converted to Quaternion