Matrix.hx 963 B

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