图形学消隐实验,*方案1上下旋转,只显示可见面,函数说明:void Project(float X,float Y,float Z) 功能:根据透视或平行投影将三维点进行投影变换 入口参数:float X,float Y,float Z 返回参数:无(void)
上传时间: 2013-12-22
上传用户:liuchee
ST7 Visual Develop for ST7 Assembler Toolset Users integrated development environment that allows you to build, debug and program applications for ST7 microcontrollers.
标签: development environment integrated ST7
上传时间: 2015-08-25
上传用户:1109003457
VC+MO最短路径算法 // 计算线的几何长度 double CalcLength() // 通过线的id得到线数据 BOOL GetLineData(int id) // 得到距离某点最近的线段,返回该线段的id int GetNearestLineData( double x, double y) // 判断两点是否重合 BOOL IsPtCoincide( NetPoint ptFirst, NetPoint ptSecond ) // 得到最邻近的点
标签: GetLineData CalcLength double BOOL
上传时间: 2015-08-28
上传用户:lizhen9880
图像平移只是改变图像在屏幕上的位置,图像本身并不发生变化。 假设原图像区域左上角坐标为(x0, y0),右下角坐标为(x1, y1),将图像分别沿x和y轴平移dx和dy,则新图像的左上角坐标为(x0 + dx, y0 + dy),右下角坐标为(x1 + dx, y1 + dy)。
上传时间: 2015-09-03
上传用户:dongqiangqiang
support vector classification machine % soft margin % uses "kernel.m" % % xtrain: (Ltrain,N) with Ltrain: number of points N: dimension % ytrain: (Ltrain,1) containing class labels (-1 or +1) % xrun: (Lrun,N) with Lrun: number of points N: dimension % atrain: alpha coefficients (from svcm_train on xtrain and ytrain) % btrain: offest coefficient (from svcm_train on xtrain and ytrain) % % ypred: predicted y (Lrun,1) containing class labels (-1 or +1) % margin: (signed) separation from the separating hyperplane (Lrun,1
标签: classification support machine Ltrain
上传时间: 2015-09-04
上传用户:问题问题
LCD and Keyboard ARMulator model for the ADS Source Code Copy the provided ARMulate folder into your ADS directory tree at the root, for example in c:\ADSv1_1. If prompted to overwrite files, choose Yes. The batch file copy_console.bat will place the appropriate files inside the \Bin directory so that they will be found by the ARMulator. You still need to follow the instructions under "Using the Model" to set up the configuration files.
标签: ARMulator the Keyboard ARMulate
上传时间: 2014-02-25
上传用户:woshini123456
同一个数会由于采用不同的基数而使得其表现的形式是完全不一样的,在我们的学习中,我们熟悉的基数有10进制、12进制、60进制、2进制、8进制和16进制。比如数据12,如果我们用2进制表示,则它就是1100;如果用3进制表示就是110;如果用8进制表示则是14。我们的编程任务就是与数的进制(也就是基数)有关。 程序中我们会给大家很多个数对(假设每个数对的数用X和Y表示),程序需要解决的问题就是为X和Y各选择一个最小的基数,以使得这两个数在其选择的基数上是一对相等的数。 例如,12和5这个数对,我们可以为12选择基数3,为5选择基数6,这样一来12(base 3)=5(base 6),因为12(base 3)就是10进制数5,而5(base 6)也是10进制数中的5。 程序的输入是通过文件完成的。 文件中的每一行都包含一个数对X和Y,两个数通过一个或多个空格符分割,与X和Y相关联的有效基数值范围为2~36。X和Y的合理数值表示字符包括0—9和A-Z(表示数值10-35)。 文件的最后一行用一个数字0表示输入的结束。
标签:
上传时间: 2013-12-17
上传用户:skfreeman
自定义一个简单的日期类DateType,它具有数据成员y、m、d,用来表示当前日期的年、月、日。而后设计该类欲实现(完成)的功能,进而设计出相应的类成员函数。 例如,下面给出的“雏形”可用来实现对天的增加,比较两个日期是否相等,以及对日期的输出等操作。请完成各类成员函数,并编制主函数,说明DateType类对象,对定义的各成员函数进行调用,以验证它们的正确性。 class DateType { //自定义的日期类DateType int y,m,d //数据成员,表示当前日期的年、月、日 public: DateType(int y0=1, int m0=1, int d0=1) //构造函数,设定年、月、日;并设置参数默认值 void incrementDay() //增加1天 bool equal(DateType dt2) //判断二日期是否相等 void printDate() //屏幕输出日期对象的有关数据(年、月、日) }
上传时间: 2013-12-22
上传用户:songyue1991
当手指或笔触摸屏幕时,平常相互绝缘的两层导电层就在触摸 点位置有了一个接触,因其中一面导电层接通X轴方向的5V均匀电压场(图a) ,使得检测层的电压由零变为非零,控制器侦测到这个接通后,进行A/D转换 ,并将得到的电压值与5V相比即可得触摸点的X轴坐标为(原点在靠近接地点 的那端):Xi=Lx*Vi / V(即分压原理)同理得出Y轴的坐标,这就是所有电 阻技术触摸屏共同的最基本原理。
标签: 触摸屏
上传时间: 2013-11-29
上传用户:黑漆漆
这是描述三次方结尾问题的原程序即给定以数字1,3,7,9 为结尾的正整数x,试求一个十进制位数不超过x 的十进制位 数的正整数y使得x恰为y3的结尾数字。
上传时间: 2013-12-25
上传用户:zhangzhenyu