Welcome to RotoTransXYZ code! This code will rotate (around an axis) or translate your xyz configuration file.
g++ -lm RotoTransXYZ.cpp -o RotoTransXYZ
./RotoTransXYZ <file.xyz> where options are translate: -t x y z OR rotate: -r axis degrees
Rotation of a benzene molecule around z axis of 30°
./RotoTransXYZ benzene.xyz -r z 30
Translation vector (10, 5, 15) applied to a benzene molecule ./RotoTransXYZ benzene.xyz -t 10 5 15