f_rotacao | R Documentation |
Function to rotate points by one or more angles
f_rotacao(x, y, rotacao)
x |
is a vector length n with coordinate x of point |
y |
is a vector length n with coordinate y of point |
rotacao |
is a vector of length k with angles in radians to rotate the point (x,y) |
If x and y dimension is n and rotation dimension is k, then function f_rotacao will return a dataframe with two columns and (n+1)k rows
Returns a dataframe with the original points plus the respective rotations of these points.
x=c(1,1) y=c(0,1) rotacao=c(pi/3, pi/2, pi) f_rotacao(x,y,rotacao)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.