powered by
Rotate a 2-column matrix
rotater(x, theta, center = c(0, 0), degrees = FALSE)
a rotated 2-column matrix
a 2-column matrix
angle
point of rotation
if TRUE, theta is in degrees instead of radians
x <- matrix(seq(10), ncol = 2) rotater(x, pi)
Run the code above in your browser using DataLab