2021年11月1日 星期一

常用曲線方程式

/*輸入參數方程,根據t(將從0變到1)對x,y和z,
/*例如: 對在 x-y 平面的一個圓,中心在原點,半徑 = 4
/*針對卡式座標系C,參數方程將是:
/*x = 4 * cos ( t * 360 );y = 4 * sin ( t * 360 );z = 0
/*針對圓柱座標系Z,參數方程將是: r = 4;theta = t * 360;z = 0
/*針對球座標系B,參數方程將是:rho = 4;theta = 90;phi = t * 360

/*---B---蝴蝶(Butterfly)
rho=20*t;theta=360*t*4;phi=-360*t*20

/*---B---球面螺旋(Sphere Helical)
rho=10;theta=t*180;phi=t*360*10

/*---C---正弦(sinusoid)
x=t*360/2;y=10*sin(t*360);z=0

/*---C---玫瑰線1(Rhodonea)
theta=t*360*4;
x=25+(10-6)*cos(theta)+10*cos((10/6-1)*theta);
y=25+(10-6)*sin(theta)+10*sin((10/6-1)*theta)

/*---Z---玫瑰線2(Rhodonea)
theta=t*360;r=10+10*sin(8*theta);z=4*sin(8*theta)

/*---Z---螺旋1(Helical)
r=t;theta=10+t*(10*360);z=t*5

/*---C---螺旋2(Helical)
x=5*cos(t*(5*360));y=5*sin(t*(5*360));z=10*t

/*---C---漸開線(Involute)
r=1 ; angle=360*t ; s=2*pi*r*t;z=0;
x0=s*cos(angle);x=x0+s*sin(angle);
y0=s*sin(angle);y=y0-s*cos(angle)

/*---C---雙弧外擺(Epicycloids)
L=3;b=3;
x=3*b*cos(t*360)+L*cos(3*t*360);
y=3*b*sin(t*360)+L*sin(3*t*360)

/*---C---星型線(Astroid)
a=10;x=a*(cos(t*360))^3;y=a*(sin(t*360))^3

/*---C---拋物線(Parabola)
x=3*t;y=(4*t)+(5*t^2);z=0

/*---Z---碟型線
r=5;theta=t*3600;z=(sin(3.5*theta-90))+24

/*---Z---心型線(Cardioid)
a=5;r=a*(1+cos(theta));theta=t*360;z=0

/*---C---漸開線圓柱齒輪(基圓半徑10;壓力角0到60)
afa=60*t;
x=10*cos(afa)+pi*10*afa/180*sin(faf);
y=10*sin(afa)-pi*10*afa/180*cos(faf);
z=0

/*---Z---漸開線圓柱齒輪(基圓半徑10;壓力角0到60)
afa=60*t;
r=(10^2+(pi*10*afa/180)^2)^0.5;
theta=afa-atan((pi*10*afa/180)/10);
z=0

沒有留言:

張貼留言

逆轉人生的英語課 Ester

 逆轉人生的英語課-Ester 1.找到自己的目標,(夢想可視化、習慣養成系統、自動化、心流、激勵) 2.一個計畫,系統學習,告別碎片化 3.善用COCA語料庫 4.建立個人(單字圖書館) 5.閱讀邏輯鍛鍊:使用anchor與wonder 6.利用COCA的WORD功能 7.教別...