Rotation (3-Element Vector)

Vectors are expressed as a sequence of float values separated by a single space character. If there are fewer values than the minimum (2 for this data type), then the default is used.

Rotation is a special case of vec3 and is used when to specify spatial rotations. It is represented in HTML as a vec3 with the rotation performed as follows:

  1. Object is rotated about its X-axis
  2. Object is rotated about its (new) Y-Axis
  3. Object is rotated about its (new) Z-Axis

All rotations are applied individually and about the object’s current coordinate axis.