as3 Matrix用法
来源:互联网 发布:汽车车身电脑在线编程 编辑:程序博客网 时间:2024/05/16 17:47
来源:http://www.cnblogs.com/louissong/archive/2013/02/26/2933834.html
as3 Matrix用法
Matrix构造函数里面的6个参数:
1、tx和ty相当于显示对象的x和y坐标;
2、a和d相当于scaleX和scaleY;
3、b和c是倾斜;
Matrix(a:Number = 1, b:Number = 0, c:Number = 0,
d:Number = 1, tx:Number = 0, ty:Number = 0)
倾斜的时候,可以这样计算:
如果要倾斜30°
var m:Matrix = new Matrix(1,Math.tan(Math.PI/6),0,1,0,0);
如果要朝相反的方向倾斜,只需要加个负号!
0 0
- as3 Matrix用法
- flash as3.0 Matrix
- AS3中Matrix类
- AS3中Matrix类详解
- AS3中Matrix类详解
- AS3 Matrix的一些总结
- Matrix用法
- AS3 的一些用法
- [AS3]registerClassAlias的用法
- as3 定时器用法
- AS3 setChildIndex 的用法
- AS3 Embed用法笔记
- Matrix 图片按度数旋转 as3.0
- Android之Matrix用法
- Android之Matrix用法
- Android Matrix用法
- Android之Matrix用法
- Android之Matrix用法
- 自我介绍,开篇博客
- Linux 多线程笔记
- VLOOKUP模糊匹配的妙用
- go语言快速入门:测试覆盖率(18)
- linux compatibility on ASUS laptop computer E402S
- as3 Matrix用法
- 装船问题(快排解决
- 【codeforces 766A】Mahmoud and Longest Uncommon Subsequence
- [硕.Love Python] MergeSort(归并排序)
- windows下安装和使用geany
- 开源.NET界面库
- java系统性能
- 关于windows7的一些小事
- 实现RSS 解析的几种方式