Rotations are created by the following constructors:
# Euler z-x-z sequence of rotations RotationEuler(alpha, beta, gamma) # rotation around X axis by given angle RotationX(angle) # rotation around Y axis by given angle RotationY(angle) # rotation around Z axis by given angle RotationZ(angle)
Angle arguments are understood in radians.
*deg to convert from degrees.
The Euler angles
gamma refer to the
zaxis. The coordinate axes, rotated along with the object, shall be denoted by a prime:
x'axis. The coordinate axes, rotated along, are now denoted by a double prime.
Rotations can be applied to particles and to inter-particle structures.
For the time being, particle rotations are carried out around the reference point in the center of the bottom of the particle. This shall be revised soon.
Rotations affect only rotated objects, not the coordinate system. Therefore subsequent rotations or translations are carried out with respect to the original coordinate system.