[英]Equally spaced points on archimedian spiral
我知道如何绘制阿基米德螺旋线
a <- 20 #distance from origin
b <- 1 #distance between loops
maxtheta <- 20*pi #10 times round the loop
theta <- seq(0,maxtheta,0.01) #my sequence of angles
r <- a + b*theta # equation for the spiral
df <- data.frame(x=r*cos(theta), y=r*sin(theta)) # convert points to Cartesian coordinates
#then plot them to get spiral
此外,我还想在螺旋上绘制均匀分布的点,但到目前为止我的点总是不等间距。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.