powered by
Function to build point for the circle base
pcircle(theta, raio, k, n)
Returns a dataframe with the original points plus the respective rotations of these points.
is a vector length 2 with start angle and end angle
is a vector length 1 with radius value
is a vector of length 1 with angles in degree to rotate the point (x,y)
is a number of points
Luciane Ferreira Alcoforado
theta = c(0,2*pi) #half turn angle raio = 1 k = 45 n=20 pcircle(theta, raio, k, n)
Run the code above in your browser using DataLab