/* 旋转的立体椭球 */ #include graphics.h #include math.h #include conio.h #define PI 3.14159 #define T PI/180 #define NN 36 #define DT PI/NN #define DIST 0.8 #define R 190 static int n=1; void trans(t,s) float t[3]; float s[3][3]; { s[0][0]=cos(t[1])*cos(t[2]); s[0][1]=cos(t[1])*sin(t[2]); s[0][2...
[ 查看全文 ]