vareulerAngles:Vector3Description描述The rotation as
Euler angles in degrees.旋转作为欧拉角度。The x, y, and z angles represent a rotation z
degrees around the z...
分类:
其他好文 时间:
2014-07-22 23:15:35
阅读次数:
327
EditorGUI.ProgressBar 进度条static
functionProgressBar(position:Rect,value: float,text: string) :
voidParameters参数totalPositionRectangle on the screen to...
分类:
其他好文 时间:
2014-05-10 01:28:36
阅读次数:
440
把一般式子转换成逆波兰式。
这里的都是加括号的,难度降低点。
Example
Input:
3
(a+(b*c))
((a+b)*(z+x))
((a+t)*((b+(a+c))^(c+d)))
Output:
abc*+
ab+zx+*
at+bac++cd+^*
知道其特点就好办:
1 遇到字母一定是可以输出的
2 遇到操作符号就入栈
3 遇到括号')',就出栈...
分类:
其他好文 时间:
2014-05-03 15:35:28
阅读次数:
317
paip.关于动画特效原理 html js 框架总结
1. 动画框架的来源:flex,jqueryui 3
2. 特效的分类 3
2.1. Property effects 动态改变一个或多个目标对象的属性 (Animate、Fade, Resize, and AnimateColor) 4
2.2. Transform effects 缩入、旋转和位置的改变 .(Move,...
分类:
Web程序 时间:
2014-05-02 06:28:24
阅读次数:
1028
来自:#include "DDraw.h"class CDDraw{public:void
CleanUp();void DrawDIB(BITMAPINFOHEADER* pBI,char* pData,RECT*rt);BOOL Init(HWND
hWnd,int nWidth,int nHe...
分类:
其他好文 时间:
2014-05-01 05:25:10
阅读次数:
407
Camera属性中有个Viewport Rect,如下图:X、Y为(0,
0)代表左下角,(1,
1)代表右上角;W和H分别是Viewport的宽(Width)和高(Height),摄像机的Aspect参数(下一段提到)由W、H以及窗口的长宽比共同决定。通过设置这4个参数以及深度(Depth),可以...
分类:
其他好文 时间:
2014-04-30 20:33:13
阅读次数:
514
来自:http://blog.csdn.net/luxiaoyu_sdc/article/details/131684971,WorldSpace(世界坐标):我们在场景中添加物体(如:Cube),他们都是以世界坐标显示在场景中的。transform.position可以获得该位置坐标。2,
Scr...
分类:
其他好文 时间:
2014-04-30 19:11:46
阅读次数:
531
前两天跟朋友说起以前玩的DUBO的“动物世界”的游戏,下载了一个android的,觉得不太爽,干脆按照以前玩的感觉自己做了一个,这个版本没有用canvas,主要用css3
的transform 属性,在手机端效率太差劲了,还望高人指点效率迷津。说明:1.45秒压点倒计时2.10秒中奖反馈倒计时3.随...
分类:
其他好文 时间:
2014-04-29 22:31:42
阅读次数:
689
在 iPhone
应用里,有时我们想强行把显示模式从纵屏改为横屏(反之亦然),CocoaChina 会员 “alienblue”
为我们提供了两种思路第一种:通过人为的办法改变view.transform的属性。 具体办法:
view.transform一般是View的旋转,拉伸移动等属性,类似vi...
分类:
移动开发 时间:
2014-04-29 22:19:23
阅读次数:
649
- (void)drawRect:(CGRect)rect
{
[super drawRect:rect];
CGContextRef ctx = UIGraphicsGetCurrentContext();
CGContextSetRGBFillColor(ctx, .3, .3, .3, .1);
CGContextFillRect(ctx, self.boun...
分类:
其他好文 时间:
2014-04-29 13:33:22
阅读次数:
284