arena-py API v1.3.0
arena .attributes .rotation
Rotation attribute class to manage its properties in the ARENA: 3D object rotation in quaternion representation; Right-handed coordinate system. Euler degrees are deprecated in wire message format.
Usage: rotation=Rotation(...)
or rotation=Rotation(x,y,z,w)
or rotation=Rotation(x,y,z)
or rotation=(x,y,z,w)
or rotation=(x,y,z)
Parameters
- float|Iterable|Mapping w: w Defaults to '1' (optional)
- float x: x Defaults to '0' (optional)
- float y: y Defaults to '0' (optional)
- float z: z Defaults to '0' (optional)
@classmethod
def
e2q(cls, e):
euler (degrees) to quaternions per THREE.js Quaternion.setFromEuler, XYZ order