Whatever your rotation problem is (hard to tell without a usable example - see
http://sscce.org/). Your use of the comma operator is obviously flawed and shows that you lack basic understanding of C++. If you are not willing to correct obviously broken code and provide a working example of your problem for people to test, then by all means, waste your time elsewhere.