在前面的章节数学图形(1.13) 利萨茹曲线中,写的是二维的利萨茹曲线,这一节,将其变为3D图形.
#http://www.mathcurve.com/courbes3d/lissajous3d/lissajous3d.shtml vertices = a = rand2(, )
b = rand2(, )
c = rand2(, ) k = rand2(0.2, )
n = rand2(0.2, )
m = rand2(0.2, ) t = from to (*PI) x = a*sin(k*t)
y = b*sin(n*t)
z = c*sin(m*t)
看上去就是几团乱麻.有时看代码时就像这种利萨茹3D曲线,看上去有点规律,却又觉得思绪太乱.
不同参数下的利萨茹3D曲线:
k =
n =
m =
k =
n =
m =
k =
n =
m =
k =
n =
m =