Array Right Rotation Algorithm

Since matrix multiplication has no consequence on the zero vector (the coordinates of the origin), rotation matrix describe rotations about the origin. More specifically, they can be characterized as orthogonal matrix with determinant 1; that is, a square matrix R is a rotation matrix if and only if RT = R−1

Array Right Rotation source code, pseudocode and analysis