R/rotation.R
rotate2.Rd
Performs a rotation in the plane
rotate2(x, theta = pi)
Matrix to be rotated (2 times n)
Rotation in radians
Returns a matrix of the same dimension as x
x
Klaus K. Holst
rotate2(cbind(c(1,2),c(2,1))) #> [,1] [,2] #> [1,] -1 -2 #> [2,] -2 -1