rotate2D | R Documentation |
Rotates a two-dimensional vector about the origin.
rotate2D(x, angle)
x |
The two-component vector(s) that is (are) to be rotated. In case of multiple vectors, they should be in the form of a 2xn array or matrix. |
angle |
A single numeric specifying the angle by which to rotate about the origin, in radians. |
A two-component vector that contains the rotated x, or a matrix containing the rotated columns of x.
Eike Petersen
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.