rotate2dmatrix | R Documentation |
Rotate a 2-column matrix
rotate2dmatrix(x, theta, degrees = FALSE, origin = c(0, 0))
x |
a 2-column matrix |
theta |
angle |
degrees |
if TRUE, theta is in degrees instead of radians |
origin |
point of rotation |
a rotated 2-column matrix
x <- matrix(seq(10), ncol = 2)
rotate2dmatrix(x, pi)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.