Matrix.hx 904 B

123456789101112131415161718192021222324252627282930
  1. package flash.geom;
  2. extern class Matrix {
  3. // 3x2 affine 2D matrix
  4. var a : Float;
  5. var b : Float;
  6. var c : Float;
  7. var d : Float;
  8. var tx : Float;
  9. var ty : Float;
  10. function new( ?a : Float, ?b : Float, ?c : Float, ?d : Float, ?tx : Float, ?ty : Float) : Void;
  11. function transformPoint( p : Point<Float> ) : Point<Float>;
  12. function deltaTransformPoint( p : Point<Float> ) : Point<Float>;
  13. function toString() : String;
  14. function scale( sx : Float, sy : Float ) : Void;
  15. function translate( tx : Float, ty : Float ) : Void;
  16. function rotate( r : Float ) : Void;
  17. function identity() : Void;
  18. function invert() : Void;
  19. function concat( m : Matrix ) : Void;
  20. function clone() : Matrix;
  21. function createGradientBox( width : Float, height : Float, ?rot : Float, ?tx : Float, ?ty : Float ) : Void;
  22. function createBox( scalex : Float, scaley : Float, ?rot : Float, ?tx : Float, ?ty : Float ) : Void;
  23. }