f_rotacao {MandalaR} | R Documentation |
Mandalar: package for building mandalas from parametric equations of classical curves
Description
Function to rotate points by one or more angles
Usage
f_rotacao(x, y, rotacao)
Arguments
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) |
Details
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
Value
Returns a dataframe with the original points plus the respective rotations of these points.
Examples
x=c(1,1)
y=c(0,1)
rotacao=c(pi/3, pi/2, pi)
f_rotacao(x,y,rotacao)
[Package MandalaR version 0.1.0 Index]