水滴線的輪廓像一顆小水滴.
相關軟件參見:數學圖形可視化工具,使用自己定義語法的腳本代碼生成數學圖形.該軟件免費開源.QQ交流群: 367752815
vertices = 1000 t = from 0 to (2*PI) a = 10 b = rand2(0.1, 10) x = a*cos(t)*cos(t) y = a*a*(cos(t)^3)*sin(t) / b
另一種寫法:
vertices = 1000 u = from 0 to (2*PI) a = 10 b = rand2(0.1, 10) x = a/2*(1 + cos(u)) y = a*a/8*(sin(2*u) + 2*sin(u))/b
還有一種曲線名為Larme,也是水滴的樣子:
#http://www.mathcurve.com/courbes2d/larme/larme.shtml vertices = 1000 t = from 0 to (2*PI) n = rand2(1, 10) x = 10*cos(t) y = 10*sin(t)*pow(sin(t/2), n)
水滴面:
vertices = D1:1000 D2:100 u = from 0.01 to (2*PI - 0.01) D1 v = from 0.01 to 32 D2 a = 10 y = a*cos(u)*cos(u) x = a*a*(cos(u)^3)*sin(u) / b
larme面:
vertices = D1:1000 D2:100 u = from 0.01 to (2*PI - 0.01) D1 v = from 0.01 to 32 D2 y = 10*cos(u) x = 10*sin(u)*pow(sin(u/2), v)
再補充一種曲線梨線
pear
#http://www.2dcurves.com/quartic/quarticp.html#pearshapedcurve vertices = 1000 t = from 0 to (2*PI) y = -1 - sin(t) x = 0.5*(1 + sin(t))*cos(t)