File: Matrix.hx

package info (click to toggle)
haxe 1%3A4.3.6-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 46,180 kB
  • sloc: ml: 137,199; ansic: 2,448; makefile: 456; java: 386; cs: 336; cpp: 318; python: 318; sh: 75; objc: 64; php: 50; xml: 31; javascript: 11
file content (29 lines) | stat: -rw-r--r-- 1,409 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package flash.geom;

extern class Matrix {
	var a : Float;
	var b : Float;
	var c : Float;
	var d : Float;
	var tx : Float;
	var ty : Float;
	function new(a : Float = 1, b : Float = 0, c : Float = 0, d : Float = 1, tx : Float = 0, ty : Float = 0) : Void;
	function clone() : Matrix;
	function concat(m : Matrix) : Void;
	@:require(flash11) function copyColumnFrom(column : UInt, vector3D : Vector3D) : Void;
	@:require(flash11) function copyColumnTo(column : UInt, vector3D : Vector3D) : Void;
	@:require(flash11) function copyFrom(sourceMatrix : Matrix) : Void;
	@:require(flash11) function copyRowFrom(row : UInt, vector3D : Vector3D) : Void;
	@:require(flash11) function copyRowTo(row : UInt, vector3D : Vector3D) : Void;
	function createBox(scaleX : Float, scaleY : Float, rotation : Float = 0, tx : Float = 0, ty : Float = 0) : Void;
	function createGradientBox(width : Float, height : Float, rotation : Float = 0, tx : Float = 0, ty : Float = 0) : Void;
	function deltaTransformPoint(point : Point) : Point;
	function identity() : Void;
	function invert() : Void;
	function rotate(angle : Float) : Void;
	function scale(sx : Float, sy : Float) : Void;
	@:require(flash11) function setTo(aa : Float, ba : Float, ca : Float, da : Float, txa : Float, tya : Float) : Void;
	function toString() : String;
	function transformPoint(point : Point) : Point;
	function translate(dx : Float, dy : Float) : Void;
}