Meta interview question

Code a 3D rotation in C++.