code: function rotateVector(vec, z, x, y) {
    if (z) {
      vec3.rotateZ(vec, vec, origin, z);
    }
    if (x) {
      vec3.rotateX(vec, vec, origin, x);
    }
    if (y) {
      vec3.rotateY(vec, vec, origin, y);
    }
  }
docs: Rotate a vector in ZXY order.