forked from: Nice Matrix Rotation that works

