实现一个类,描述二维平面的直线Line。 描述属性:私有属性 直线所通过的点:Point p; 直线的斜率:double m 实现方法: 直线的构建; 返回直线的两个属性; 返回直线在Y轴上的截距:yIntercept ; 判断两条直线是否相等; 显示直线的内容:y = mx + b isParallelTo(Line line2),判断本直线与直线line2是否平行; isPeroendicularTo(Line line2),判断本直线与直线line2是否垂直; translate(double dx, double dy),将直线向右移动dx单位,向上移动dy单位; rarate(double ta),将直线沿逆时针方向旋转ta度
标签:
上传时间: 2015-10-24
上传用户:Divine
驱动级IO模拟按键,用于DX游戏的按键模拟。 this code can IO-driven simulation of the keys to the game for the DX simulated keys.
上传时间: 2013-12-24
上传用户:silenthink
Welcome to the software files for the ADS8361 to TMS320F2812! There are two project files in each of the folders McBSP, SPI and Both. Mode II and IV are explored using the McBSP port alone, as well as the SPI port. These projects are located in the SPI and McBSP folders. Modes I and III are explored using both McBSP and SPI. In Mode I, the M0 and M1 pins are controlled by use of the jumper on the evaluation module. A0 is controlled by the DX pin of the McBSP port. In Mode III, the A0, M0 and M1 pins are controlled via GPIO functions of PortF. The "SRC", "CMD" and "INCLUDE" files in the archive are from "C28x Peripheral Examples in C" (document # SPRC097). If you have questions about this or other Data Converter products, feel free to e-mail us at:
标签: files the software Welcome
上传时间: 2015-12-16
上传用户:lixinxiang
BillboardDemo基于VS.net和DX9的广告版程序实例,对利用DX 3D图形与动画程序设计有很大帮助
标签: BillboardDemo DX9 net VS
上传时间: 2014-01-20
上传用户:ghostparker
Mir2 Actor.pas if (IsFace) and (FaceIndex > -1) then begin d := aFrmMain.WFaceimg.Images[FaceIndex * 10 + (FaceFram) mod 8] /// if HorseSurface<>nil then // dSurface.Draw (dx+shiftx, dy + hpy + ShiftY-60, d.ClientRect, d, TRUE) // else if d <> nil then begin if HorseSurface <> nil then dsurface.Draw(SayX - d.Width div 2, dy + hpy + ShiftY - 60, d.ClientRect, d, True) else dsurface.Draw(SayX - d.Width div 2, dy + hpy + ShiftY - 50, d.ClientRect, d, True) end end end
标签: FaceIndex aFrmMain WFaceimg IsFace
上传时间: 2016-02-21
上传用户:ruixue198909
Kriging 插值程序,实现二维三维数据插值 Makefile_hp700 Makefile_ibm6000 kriging.mdf kriging.c outboard.c inv_m.tar.gz The inverse matrix source codes which got from Netlib. f2c.tar.gz The head file and library which are used to inverse matrix source codes. krig.net The example dx file. data1.dx The input example.
上传时间: 2016-03-27
上传用户:缥缈
类似于股市K线技术分析的系统源码,结合DX开发,可用于分析行情k线形成的原理
上传时间: 2016-04-14
上传用户:firstbyte
通用数据传送指令. MOV 传送字或字节. MOVSX 先符号扩展,再传送. MOVZX 先零扩展,再传送. PUSH 把字压入堆栈. POP 把字弹出堆栈. PUSHA 把AX,CX,DX,BX,SP,BP,SI,DI依次压入堆栈. POPA 把DI,SI,BP,SP,BX,DX,CX,AX依次弹出堆栈. PUSHAD 把EAX,ECX,EDX,EBX,ESP,EBP,ESI,EDI依次压入堆栈. POPAD 把EDI,ESI,EBP,ESP,EBX,EDX,ECX,EAX依次弹出堆栈. BSWAP 交换32位寄存器里字节的顺序 XCHG 交换字或字节.( 至少有一个操作数为寄存器,段寄存器不可作为操作数) CMPXCHG 比较并交换操作数.( 第二个操作数必须为累加器AL/AX/EAX ) XADD 先交换再累加.( 结果在第一个操作数里 ) XLAT 字节查表转换. ── BX 指向一张 256 字节的表的起点, AL 为表的索引值 (0-255,即 0-FFH) 返回 AL 为查表结果. ( [BX+AL]->AL )
上传时间: 2016-08-17
上传用户:13681659100
一个高手写的3D游戏,使用DX和c++,技术很实用,希望对游戏感兴趣,或想做游戏的朋友有帮助
上传时间: 2016-12-22
上传用户:CHENKAI
srand[getpid[]] /* initialize some of the memory */ memset[heightmap, 0, MAPSIZE*MAPSIZE] memset[vpage, 0, RENDERWIDTH * RENDERHEIGHT] printf["Creating dx d fractal terrain\n", MAPSIZE, MAPSIZE] heightmap[0] = [rand[] 128] + 64 // initialize starting point on map CreateFractalMap[0, 0, MAPSIZE, MAPSIZE] printf["Smoothing terrain\n"] for [i = 0 i < 5 i++] SmoothMap[] MakeColorMap[]
标签: MAPSIZE initialize heightmap getpid
上传时间: 2014-01-04
上传用户:ainimao