在cocos2dx中进行矩形的碰撞检测时需要对旋转过的矩形做碰撞检查,由于游戏没有使用Box2D等物理引擎,所以采用了OBB(Oriented bounding box)方向包围盒算法,这个算法是基于SAT(Separating Axis Theorem)分离轴定律的。 分离轴定律:两个凸多边...
分类:
编程语言 时间:
2015-04-18 01:07:55
阅读次数:
1120
AQtGui.QCheckBoxis a widget that has two states: on and off. It is a box with a label. Check boxes are typically used to represent features in an appl...
分类:
其他好文 时间:
2015-04-17 20:22:39
阅读次数:
223
Layout management with layout classes is much more flexible and practical. It is the preferred way to place widgets on a window. TheQtGui.QHBoxLayouta...
分类:
其他好文 时间:
2015-04-17 19:48:00
阅读次数:
135
Alert Messager - jQuery EasyUI Demo Alert Messager Click on each button to display different alert message box. ...
分类:
其他好文 时间:
2015-04-17 18:02:46
阅读次数:
106
Message Box Position - jQuery EasyUI Demo Message Box Position Click the buttons below to display message box on dif...
分类:
其他好文 时间:
2015-04-17 17:56:18
阅读次数:
135
说到 IE 的 bug,一个臭名昭著的例子是它对于“盒模型”的错误解释:在 IE5.x 以及 Quirks 模式的 IE6/7 中,将 border 与 padding 都包含在 width 之内。这为前端工程师的工作平添了不少麻烦,几户每个需要定义尺寸的 box 都要思量一下:是否触发了“盒模型 ...
分类:
Web程序 时间:
2015-04-17 17:47:26
阅读次数:
132
Basic Messager - jQuery EasyUI Demo Basic Messager Click on each button to see a distinct message box. Sh...
分类:
其他好文 时间:
2015-04-17 17:36:24
阅读次数:
100
virtualbox-4.3? 去官网下载deb格式(可直接在软件中心安装,卸载使用命令apt-get remove virtualbox-4.3) ? 2.vagrant(虚拟机文件端口映射到本机的工具) ??? 安装时,去官网直接下载deb ??? vagrantbox...
分类:
其他好文 时间:
2015-04-17 14:06:17
阅读次数:
172
http://www.rainleaves.com/html/1095.htmlcss3弹性盒子模型之box-flex(修正版一)发表于2011/12/06 9条回复18,699 views今天看到蓝色理想上面有一篇文章讲《css3弹性盒模型布局模块介绍》里面讲到用box-flex,突然觉得有点心慌...
分类:
Web程序 时间:
2015-04-17 11:02:03
阅读次数:
183
1 function Box(){} 2 Box.prototype = { 3 constructor : function (){ 4 console.log('this is constructor'); 5 }, 6 name : 'name', 7...
分类:
编程语言 时间:
2015-04-17 10:58:06
阅读次数:
163