matrix.hx
来自「ocaml编写的一个flash编译器」· HX 代码 · 共 30 行
HX
30 行
package flash.geom;extern class Matrix { // 3x2 affine 2D matrix var a : Float; var b : Float; var c : Float; var d : Float; var tx : Float; var ty : Float; function new( ?a : Float, ?b : Float, ?c : Float, ?d : Float, ?tx : Float, ?ty : Float) : Void; function transformPoint( p : Point<Float> ) : Point<Float>; function deltaTransformPoint( p : Point<Float> ) : Void; // does not apply translation function toString() : String; function scale( sx : Float, sy : Float ) : Void; function translate( tx : Float, ty : Float ) : Void; function rotate( r : Float ) : Void; function identity() : Void; function invert() : Void; function concat( m : Matrix ) : Void; function clone() : Matrix; function createGradientBox( width : Float, height : Float, ?rot : Float, ?tx : Float, ?ty : Float ) : Void; function createBox( scalex : Float, scaley : Float, ?rot : Float, ?tx : Float, ?ty : Float ) : Void;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?