Adding rotation using a matrix