数学图形(1.38)anguinea曲线

个人觉得,这是一种变异的SIN曲线.

#http://www.mathcurve.com/courbes2d/anguinee/anguinee.shtml
vertices = 1000
t = from (-PI) to (PI)
a = rand2(10, 100)
d = rand2(1, 10)

x = d*tan(t/2)
y = a/2*sin(t)

面的形式:

#http://www.mathcurve.com/courbes2d/anguinee/anguinee.shtml
vertices = D1:1000 D2:101
u = from (-PI*0.95) to (PI*0.95) D1
v = from 0 to 50 D2
d = rand2(1, 10)
x = d*tan(u/2)
y = v/2*sin(u)
v = v*0.1

原文地址:https://www.cnblogs.com/WhyEngine/p/3839891.html