GL 库函数1.1 glShadeModel—选择平面明暗模式或光滑明暗模式 描述: void glShadeModel(Glenum mode) 参数: mode 指定表示明暗模式的符号值,可以选择GL_FLAT和GL_SMOOTH缺省值为GL_SMOOTH. 效果:1.2 glColor—设置当前颜色 描述: void glColor3d(GLdouble red,GLdouble green,GLdouble blue) void glColor[3/4][数据类型](...)3:表示RGB模式,4:表示RGBA模式,数据类型:b(GLbyte) d(GLdouble)... Read More
定义:若一n阶的复数矩阵U满足其中为n阶单位矩阵,为U的共轭转置,则称U为酉矩阵(英文: Unitary Matrix, Unitary 是归一或单位的意思)。即,矩阵U为酉矩阵,当且仅当其共轭转置为其逆矩阵:。性质:U可逆|det(U)| = 1是酉矩阵参考链接:http://zh.wikipedia.org/wiki/%E9%85%89%E7%9F%A9%E9%99%A3 Read More
多边形特点:所有点都在边的一侧或者边上,根据两点式直线(y-y1)/(x-x1)=(y2-y1)/(x2-x1)在同一侧时同为大于或小于号View Code 1 struct point 2 { 3 int x; 4 int y; 5 } 6 struct polygon 7 { 8 int EdgeNumber; 9 int VertexNumber;10 point p[VertexNumber];11 }12 void CreatPolygon(polygon pyn,int edgenumber,point p[edgenumber])13 {... Read More