R/rotate3d.R

rotate2D.Rd

Rotate a 2D matrix in 90 degree steps.

rotate2D(slice, degrees = 90)

a 2D matrix

integer, must be a (positive or negative) multiple of 90

2D matrix, the rotated matrix