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);
  }
}
// Rotate a vector in ZXY order.
Rotate a vector in ZXY order.
Rotate a vector in ZXY order .
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);
  }
}
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 ) ; } }
Rotate a vector in ZXY order.
Rotate a vector in ZXY order .