1 #include 2 #include 3 4 #define mymax(a, b)
(a>b) ? a:b 5 6 typedef struct { 7 int x, y, c; 8 } rect_st; 9 10 rect_st
rects[15];11 12 int d...
分类:
其他好文 时间:
2014-05-30 04:35:16
阅读次数:
200
3d 视图效果,x/y/z轴的说明图1 rotateX( angle )2 rotateY(
angle )3 rotateZ( angle )4
rotate旋转的意思,rotateX旋转X轴,rotateY旋转Y轴,rotateZ旋转Z轴rotateX、rotateY、rotateZ、rotat...
分类:
Web程序 时间:
2014-05-28 16:15:02
阅读次数:
461
- (IBAction)leftRotate { // 1.取得头像按钮 UIButton *head
= (UIButton *)[self.view viewWithTag:10]; // 2.向左旋转45° // 45 180 // 角度是正数:顺时针,
角度是负数:逆时针// ...
分类:
其他好文 时间:
2014-05-28 13:36:43
阅读次数:
237
使用imcrop函数时,如果rect为空(rect=[]),执行函数后会直接弹出显示的图像,所以在使用imcrop之前一定要检查rect是否为空,否则会不停的弹出图像。
分类:
其他好文 时间:
2014-05-26 14:43:46
阅读次数:
198
cube目录下有n个cube,可不可以一下子遍历出所有的对象,而不用一个一个的find?find(“Cube1”)
1、foreach(Transform ts in cube) 2、cube.getCompontsInChildren 返回transform的数组
3、GameObject[] g...
分类:
其他好文 时间:
2014-05-26 08:37:05
阅读次数:
276
CGSize rect =
[info.contentsizeWithFont:self.contentLabel.fontconstrainedToSize:CGSizeMake(self.contentLabel.frame.size.width,
MAXFLOAT)]; self.cont.....
分类:
其他好文 时间:
2014-05-26 07:09:59
阅读次数:
217
using UnityEngine;using System.Collections;//
直接放在相机上,控制相机的旋转和缩放 //public class CameraContro : MonoBehaviour { public
Transform target; ...
分类:
其他好文 时间:
2014-05-25 07:44:17
阅读次数:
242
css3图片与文字3D transform切换:
http://www.w3cplus.com/demo/419.html详细的CSS3属性详解:
http://www.zhangxinxu.com/wordpress/2012/09/css3-3d-transform-perspective-.....
分类:
Web程序 时间:
2014-05-24 11:56:24
阅读次数:
291
iOS开发UI基础—transframe属性(形变)1.
transform属性在OC中,通过transform属性可以修改对象的平移、缩放比例和旋转角度常用的创建transform结构体方法分两大类(1)
创建“基于控件初始位置”的形变CGAffineTransformMakeTranslatio...
分类:
移动开发 时间:
2014-05-23 04:09:30
阅读次数:
422
1 // 2 // LWTViewController.m 3 // 纯代码位移和伸缩作业 4 //
5 // Created by apple on 14-5-20. 6 // Copyright (c) 2014年 lwt. All rights
reserved. 7 ...
分类:
其他好文 时间:
2014-05-23 03:32:10
阅读次数:
194