Matrix.hx 1.4 KB

1234567891011121314151617181920212223242526272829
  1. package flash.geom;
  2. extern class Matrix {
  3. var a : Float;
  4. var b : Float;
  5. var c : Float;
  6. var d : Float;
  7. var tx : Float;
  8. var ty : Float;
  9. function new(a : Float = 1, b : Float = 0, c : Float = 0, d : Float = 1, tx : Float = 0, ty : Float = 0) : Void;
  10. function clone() : Matrix;
  11. function concat(m : Matrix) : Void;
  12. @:require(flash11) function copyColumnFrom(column : UInt, vector3D : Vector3D) : Void;
  13. @:require(flash11) function copyColumnTo(column : UInt, vector3D : Vector3D) : Void;
  14. @:require(flash11) function copyFrom(sourceMatrix : Matrix) : Void;
  15. @:require(flash11) function copyRowFrom(row : UInt, vector3D : Vector3D) : Void;
  16. @:require(flash11) function copyRowTo(row : UInt, vector3D : Vector3D) : Void;
  17. function createBox(scaleX : Float, scaleY : Float, rotation : Float = 0, tx : Float = 0, ty : Float = 0) : Void;
  18. function createGradientBox(width : Float, height : Float, rotation : Float = 0, tx : Float = 0, ty : Float = 0) : Void;
  19. function deltaTransformPoint(point : Point) : Point;
  20. function identity() : Void;
  21. function invert() : Void;
  22. function rotate(angle : Float) : Void;
  23. function scale(sx : Float, sy : Float) : Void;
  24. @:require(flash11) function setTo(aa : Float, ba : Float, ca : Float, da : Float, txa : Float, tya : Float) : Void;
  25. function toString() : String;
  26. function transformPoint(point : Point) : Point;
  27. function translate(dx : Float, dy : Float) : Void;
  28. }