码迷,mamicode.com
首页 >  
搜索关键字:dy    ( 426个结果
游戏开发基础知识之图形变换:矩阵变换
参考:http://blog.csdn.net/leaf6094189/article/details/18554549一、平移3类基本的2D图形变换。平移:设某点向x方向移动dx,y方向移动dy,[x,y]为变换前坐标,[X,Y]为变换后坐标。则X=x+dx;Y=y+dy;以矩阵表示: ...
分类:其他好文   时间:2014-12-01 12:47:41    阅读次数:170
cocos2dX改变锚点位置
改变锚点时,同过计算偏移量修正position从而保持CCNode在屏幕上的位置不变 1 void CLayer::change_anchorpoint(CCNode* node,CCPoint newpt) 2 { 3 float dx, dy, diffx, diffy, height,...
分类:其他好文   时间:2014-11-27 21:58:52    阅读次数:566
[Elasticsearch] 索引管理 (三) - 根对象(Root Object)
根对象(Root Object) 映射的最顶层被称为根对象。它包含了: 属性区域(Properties Section),列举了文档中包含的每个字段的映射信息。各种元数据(Metadata)字段,它们都以_开头,比如_type,_id,_source。控制用于新字段的动态探测(Dynamic Detection)的设置,如analyzer,dynamic_date_formats和dy...
分类:其他好文   时间:2014-11-26 11:24:04    阅读次数:267
报账单打印
学校报账要求打印网上填写的表格.需要把网页导出为pdf格式,使用IE+foxit阅读器.1.打开网页:http://*****.****.edu.cn/wsyy/MODULES/All_dy/NJ_YBBX_Print.aspx?Ywbh=YB20141125****2.进入设置->打印->页面设置...
分类:其他好文   时间:2014-11-25 10:33:04    阅读次数:360
POJ 1654 Area 计算几何
#include#include#include#includeusing namespace std;int dx[10]={0,1,1,1,0,0,0,-1,-1,-1};int dy[10]={0,-1,0,1,-1,0,1,-1,0,1};char s[1000010];__int64 ar...
分类:其他好文   时间:2014-11-19 13:58:33    阅读次数:252
SCOI 2005 骑士精神 && FZU 骑士 搜索+剪枝
题目链接:点击打开链接 #include #include #include #include #include #include using namespace std; const int dx[] = {1, 1, -1, -1, 2, 2, -2, -2}; const int dy[] = {2, -2, 2, -2, 1, -1, 1, -1}; cons...
分类:其他好文   时间:2014-11-16 17:22:04    阅读次数:270
关于SQL语言的优化(Oracle)
SQL优化的原则尽量使用列名--SQL 优化2: where解析的顺序 : 右--> 左Select * from zl_yhjbqk where dy_dj = '1K以下' and xh_bz=1Select * from zl_yhjbqk where xh_bz=1 and dy_dj = ...
分类:数据库   时间:2014-11-12 00:31:07    阅读次数:195
LeetCode:Max Points on a Line
题目描述: Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. 解题思路:暴力求解。以每个点为中心,然后遍历剩余的点。对每个点,初始化一个map,以pair为key(dx,dy为两点之间x坐标与y坐标的差除以他们的最大公约数之后得到...
分类:其他好文   时间:2014-11-10 12:07:20    阅读次数:152
Html5 Canvas transform setTransform
Html5 Canvas transform就是矩阵变换,一种坐标的变形。坐标变形的三种方式,平移translate, 缩放scale以及旋转rotate都可以通过transform做到。transform(m11, m12, m21, m22, dx, dy):这个方法必须将当前的变形矩阵乘上下面...
分类:Web程序   时间:2014-11-09 16:36:23    阅读次数:182
SAP中常用函数(转载)
sap函数大全函数名 描述SD_VBAP_READ_WITH_VBELN 根据销售订单读取表vbap中的信息EDIT_LINES 把READ_TEXT返回的LINES中的行按照TDFORMAT=“*”重新组织VIEW_MAINTENANCE_CALL 维护表视图函数名 描述DY_GET_FOCUS ...
分类:其他好文   时间:2014-11-06 14:41:41    阅读次数:197
426条   上一页 1 ... 36 37 38 39 40 ... 43 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!