libraries/EaselJS_docs/classes/Matrix2D.html (view raw)
1<!DOCTYPE html>
2<html lang="en">
3<head>
4 <meta charset="utf-8">
5 <link rel="stylesheet" href="../assets/css/yui-cssgrids-min.css">
6 <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
7 <link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
8 <link rel="shortcut icon" type="image/x-icon" href="../assets/favicon.ico">
9 <script src="../assets/js/yui-source.js"></script>
10 <title>EaselJS v1.0.0 API Documentation : Matrix2D</title>
11</head>
12<body class="yui3-skin-sam">
13
14<div id="doc">
15 <div id="hd" class="yui3-g header">
16 <div class="yui3-u-3-4">
17
18 <h1><a href="http://www.createjs.com/easeljs"><img src="../assets/docs-icon-EaselJS.png" title="EaselJS"></a></h1>
19
20 </div>
21 <div class="version">
22 <em>API Documentation for: 1.0.0</em>
23 </div>
24 </div>
25 <div id="bd" class="yui3-g">
26
27 <div class="yui3-u-1-4">
28 <div id="docs-sidebar" class="sidebar apidocs">
29 <div id="api-list">
30 <h2 class="off-left">APIs</h2>
31 <div id="api-tabview" class="tabview">
32 <ul class="tabs">
33 <li><a href="#api-classes">Classes</a></li>
34 </ul>
35
36 <div id="api-tabview-filter">
37 <input type="search" id="api-filter" placeholder="Type to filter APIs">
38 </div>
39
40 <div id="api-tabview-panel">
41 <ul id="api-classes" class="apis classes">
42
43 <li><a href="../classes/AlphaMapFilter.html">AlphaMapFilter</a></li>
44
45 <li><a href="../classes/AlphaMaskFilter.html">AlphaMaskFilter</a></li>
46
47 <li><a href="../classes/Bitmap.html">Bitmap</a></li>
48
49 <li><a href="../classes/BitmapCache.html">BitmapCache</a></li>
50
51 <li><a href="../classes/BitmapText.html">BitmapText</a></li>
52
53 <li><a href="../classes/BlurFilter.html">BlurFilter</a></li>
54
55 <li><a href="../classes/ButtonHelper.html">ButtonHelper</a></li>
56
57 <li><a href="../classes/ColorFilter.html">ColorFilter</a></li>
58
59 <li><a href="../classes/ColorMatrix.html">ColorMatrix</a></li>
60
61 <li><a href="../classes/ColorMatrixFilter.html">ColorMatrixFilter</a></li>
62
63 <li><a href="../classes/Container.html">Container</a></li>
64
65 <li><a href="../classes/DisplayObject.html">DisplayObject</a></li>
66
67 <li><a href="../classes/DisplayProps.html">DisplayProps</a></li>
68
69 <li><a href="../classes/DOMElement.html">DOMElement</a></li>
70
71 <li><a href="../classes/EaselJS.html">EaselJS</a></li>
72
73 <li><a href="../classes/Event.html">Event</a></li>
74
75 <li><a href="../classes/EventDispatcher.html">EventDispatcher</a></li>
76
77 <li><a href="../classes/Filter.html">Filter</a></li>
78
79 <li><a href="../classes/Graphics.html">Graphics</a></li>
80
81 <li><a href="../classes/Graphics.Arc.html">Graphics.Arc</a></li>
82
83 <li><a href="../classes/Graphics.ArcTo.html">Graphics.ArcTo</a></li>
84
85 <li><a href="../classes/Graphics.BeginPath.html">Graphics.BeginPath</a></li>
86
87 <li><a href="../classes/Graphics.BezierCurveTo.html">Graphics.BezierCurveTo</a></li>
88
89 <li><a href="../classes/Graphics.Circle.html">Graphics.Circle</a></li>
90
91 <li><a href="../classes/Graphics.ClosePath.html">Graphics.ClosePath</a></li>
92
93 <li><a href="../classes/Graphics.Ellipse.html">Graphics.Ellipse</a></li>
94
95 <li><a href="../classes/Graphics.Fill.html">Graphics.Fill</a></li>
96
97 <li><a href="../classes/Graphics.LineTo.html">Graphics.LineTo</a></li>
98
99 <li><a href="../classes/Graphics.MoveTo.html">Graphics.MoveTo</a></li>
100
101 <li><a href="../classes/Graphics.PolyStar.html">Graphics.PolyStar</a></li>
102
103 <li><a href="../classes/Graphics.QuadraticCurveTo.html">Graphics.QuadraticCurveTo</a></li>
104
105 <li><a href="../classes/Graphics.Rect.html">Graphics.Rect</a></li>
106
107 <li><a href="../classes/Graphics.RoundRect.html">Graphics.RoundRect</a></li>
108
109 <li><a href="../classes/Graphics.Stroke.html">Graphics.Stroke</a></li>
110
111 <li><a href="../classes/Graphics.StrokeDash.html">Graphics.StrokeDash</a></li>
112
113 <li><a href="../classes/Graphics.StrokeStyle.html">Graphics.StrokeStyle</a></li>
114
115 <li><a href="../classes/Matrix2D.html">Matrix2D</a></li>
116
117 <li><a href="../classes/MouseEvent.html">MouseEvent</a></li>
118
119 <li><a href="../classes/MovieClip.html">MovieClip</a></li>
120
121 <li><a href="../classes/MovieClipPlugin.html">MovieClipPlugin</a></li>
122
123 <li><a href="../classes/Point.html">Point</a></li>
124
125 <li><a href="../classes/Rectangle.html">Rectangle</a></li>
126
127 <li><a href="../classes/Shadow.html">Shadow</a></li>
128
129 <li><a href="../classes/Shape.html">Shape</a></li>
130
131 <li><a href="../classes/Sprite.html">Sprite</a></li>
132
133 <li><a href="../classes/SpriteSheet.html">SpriteSheet</a></li>
134
135 <li><a href="../classes/SpriteSheetBuilder.html">SpriteSheetBuilder</a></li>
136
137 <li><a href="../classes/SpriteSheetUtils.html">SpriteSheetUtils</a></li>
138
139 <li><a href="../classes/Stage.html">Stage</a></li>
140
141 <li><a href="../classes/StageGL.html">StageGL</a></li>
142
143 <li><a href="../classes/Text.html">Text</a></li>
144
145 <li><a href="../classes/Ticker.html">Ticker</a></li>
146
147 <li><a href="../classes/Touch.html">Touch</a></li>
148
149 <li><a href="../classes/UID.html">UID</a></li>
150
151 <li><a href="../classes/Utility Methods.html">Utility Methods</a></li>
152
153 <li><a href="../classes/VideoBuffer.html">VideoBuffer</a></li>
154
155 <li><a href="../classes/WebGLInspector.html">WebGLInspector</a></li>
156
157 </ul>
158
159 <ul id="api-modules" class="apis modules">
160
161 <li><a href="../modules/CreateJS.html">CreateJS</a></li>
162
163 <li><a href="../modules/EaselJS.html">EaselJS</a></li>
164
165 </ul>
166 </div>
167 </div>
168</div>
169
170 </div>
171 </div>
172 <div class="yui3-u-3-4">
173 <div id="api-options">
174 Show:
175 <label for="api-show-inherited">
176 <input type="checkbox" id="api-show-inherited" checked>
177 Inherited
178 </label>
179
180 <label for="api-show-protected">
181 <input type="checkbox" id="api-show-protected">
182 Protected
183 </label>
184
185 <label for="api-show-private">
186 <input type="checkbox" id="api-show-private">
187 Private
188 </label>
189 <label for="api-show-deprecated">
190 <input type="checkbox" id="api-show-deprecated">
191 Deprecated
192 </label>
193
194 </div>
195 <div class="apidocs">
196 <div id="docs-main">
197 <div class="content">
198 <h1>Matrix2D Class</h1>
199<div class="box meta">
200
201
202
203
204
205 <div class="foundat">
206 Defined in: <a href="../files/easeljs_geom_Matrix2D.js.html#l41"><code>Matrix2D:41</code></a>
207 </div>
208
209
210
211
212 Module: <a href="../modules/EaselJS.html">EaselJS</a>
213
214
215
216
217</div>
218
219
220
221<div class="box intro">
222 <p>Represents an affine transformation matrix, and provides tools for constructing and concatenating matrices.</p>
223<p>This matrix can be visualized as:</p>
224<pre class="code prettyprint"><code>[ a c tx
225 b d ty
226 0 0 1 ]</code></pre>
227<p>Note the locations of b and c.</p>
228
229</div>
230
231
232 <div class="constructor">
233 <h2>Constructor</h2>
234 <div id="method_Matrix2D" class="method item">
235 <h3 class="name"><code>Matrix2D</code></h3>
236
237
238 <div class="args">
239 <span class="paren">(</span><ul class="args-list inline commas">
240
241 <li class="arg">
242
243 <code class="optional">[a=1]</code>
244
245 </li>
246
247 <li class="arg">
248
249 <code class="optional">[b=0]</code>
250
251 </li>
252
253 <li class="arg">
254
255 <code class="optional">[c=0]</code>
256
257 </li>
258
259 <li class="arg">
260
261 <code class="optional">[d=1]</code>
262
263 </li>
264
265 <li class="arg">
266
267 <code class="optional">[tx=0]</code>
268
269 </li>
270
271 <li class="arg">
272
273 <code class="optional">[ty=0]</code>
274
275 </li>
276
277 </ul><span class="paren">)</span>
278 </div>
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295 <div class="meta">
296
297
298
299 <p>
300
301 Defined in
302
303
304
305
306 <a href="../files/easeljs_geom_Matrix2D.js.html#l41"><code>Matrix2D:41</code></a>
307
308 </p>
309
310
311
312
313
314 </div>
315
316 <div class="description">
317
318 </div>
319
320
321 <div class="params">
322 <h4>Parameters:</h4>
323
324 <ul class="params-list">
325
326 <li class="param">
327
328 <code class="param-name optional">[a=1]</code>
329 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
330 <span class="flag optional" title="This parameter is optional.">optional</span>
331
332
333
334
335 <div class="param-description">
336 <p>Specifies the a property for the new matrix.</p>
337
338 </div>
339
340
341 </li>
342
343 <li class="param">
344
345 <code class="param-name optional">[b=0]</code>
346 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
347 <span class="flag optional" title="This parameter is optional.">optional</span>
348
349
350
351
352 <div class="param-description">
353 <p>Specifies the b property for the new matrix.</p>
354
355 </div>
356
357
358 </li>
359
360 <li class="param">
361
362 <code class="param-name optional">[c=0]</code>
363 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
364 <span class="flag optional" title="This parameter is optional.">optional</span>
365
366
367
368
369 <div class="param-description">
370 <p>Specifies the c property for the new matrix.</p>
371
372 </div>
373
374
375 </li>
376
377 <li class="param">
378
379 <code class="param-name optional">[d=1]</code>
380 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
381 <span class="flag optional" title="This parameter is optional.">optional</span>
382
383
384
385
386 <div class="param-description">
387 <p>Specifies the d property for the new matrix.</p>
388
389 </div>
390
391
392 </li>
393
394 <li class="param">
395
396 <code class="param-name optional">[tx=0]</code>
397 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
398 <span class="flag optional" title="This parameter is optional.">optional</span>
399
400
401
402
403 <div class="param-description">
404 <p>Specifies the tx property for the new matrix.</p>
405
406 </div>
407
408
409 </li>
410
411 <li class="param">
412
413 <code class="param-name optional">[ty=0]</code>
414 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
415 <span class="flag optional" title="This parameter is optional.">optional</span>
416
417
418
419
420 <div class="param-description">
421 <p>Specifies the ty property for the new matrix.</p>
422
423 </div>
424
425
426 </li>
427
428 </ul>
429 </div>
430
431
432
433
434
435</div>
436
437 </div>
438
439
440<div id="classdocs" class="tabview">
441 <ul class="api-class-tabs">
442 <li class="api-class-tab index"><a href="#index">Index</a></li>
443
444
445 <li class="api-class-tab methods"><a href="#methods">Methods</a></li>
446
447
448 <li class="api-class-tab properties"><a href="#properties">Properties</a></li>
449
450
451
452 </ul>
453
454 <div>
455 <div id="index" class="api-class-tabpanel index">
456 <h2 class="off-left">Item Index</h2>
457
458
459 <div class="index-section methods">
460 <h3>Methods</h3>
461
462 <ul class="index-list methods">
463
464 <li class="index-item method">
465 <a href="#method_append">append</a>
466
467
468
469 </li>
470
471 <li class="index-item method">
472 <a href="#method_appendMatrix">appendMatrix</a>
473
474
475
476 </li>
477
478 <li class="index-item method">
479 <a href="#method_appendTransform">appendTransform</a>
480
481
482
483 </li>
484
485 <li class="index-item method">
486 <a href="#method_clone">clone</a>
487
488
489
490 </li>
491
492 <li class="index-item method">
493 <a href="#method_copy">copy</a>
494
495
496
497 </li>
498
499 <li class="index-item method">
500 <a href="#method_decompose">decompose</a>
501
502
503
504 </li>
505
506 <li class="index-item method">
507 <a href="#method_equals">equals</a>
508
509
510
511 </li>
512
513 <li class="index-item method">
514 <a href="#method_identity">identity</a>
515
516
517
518 </li>
519
520 <li class="index-item method">
521 <a href="#method_invert">invert</a>
522
523
524
525 </li>
526
527 <li class="index-item method">
528 <a href="#method_isIdentity">isIdentity</a>
529
530
531
532 </li>
533
534 <li class="index-item method">
535 <a href="#method_prepend">prepend</a>
536
537
538
539 </li>
540
541 <li class="index-item method">
542 <a href="#method_prependMatrix">prependMatrix</a>
543
544
545
546 </li>
547
548 <li class="index-item method">
549 <a href="#method_prependTransform">prependTransform</a>
550
551
552
553 </li>
554
555 <li class="index-item method">
556 <a href="#method_rotate">rotate</a>
557
558
559
560 </li>
561
562 <li class="index-item method">
563 <a href="#method_scale">scale</a>
564
565
566
567 </li>
568
569 <li class="index-item method">
570 <a href="#method_setValues">setValues</a>
571
572
573
574 </li>
575
576 <li class="index-item method">
577 <a href="#method_skew">skew</a>
578
579
580
581 </li>
582
583 <li class="index-item method">
584 <a href="#method_toString">toString</a>
585
586
587
588 </li>
589
590 <li class="index-item method">
591 <a href="#method_transformPoint">transformPoint</a>
592
593
594
595 </li>
596
597 <li class="index-item method">
598 <a href="#method_translate">translate</a>
599
600
601
602 </li>
603
604 </ul>
605 </div>
606
607
608
609 <div class="index-section properties">
610 <h3>Properties</h3>
611
612 <ul class="index-list properties">
613
614 <li class="index-item property">
615 <a href="#property_a">a</a>
616
617
618
619 </li>
620
621 <li class="index-item property">
622 <a href="#property_b">b</a>
623
624
625
626 </li>
627
628 <li class="index-item property">
629 <a href="#property_c">c</a>
630
631
632
633 </li>
634
635 <li class="index-item property">
636 <a href="#property_d">d</a>
637
638
639
640 </li>
641
642 <li class="index-item property">
643 <a href="#property_DEG_TO_RAD">DEG_TO_RAD</a>
644
645
646 <span class="flag static">static</span>
647
648
649 </li>
650
651 <li class="index-item property">
652 <a href="#property_identity">identity</a>
653
654
655 <span class="flag static">static</span>
656
657
658 </li>
659
660 <li class="index-item property">
661 <a href="#property_tx">tx</a>
662
663
664
665 </li>
666
667 <li class="index-item property">
668 <a href="#property_ty">ty</a>
669
670
671
672 </li>
673
674 </ul>
675 </div>
676
677
678
679
680
681 </div>
682
683
684 <div id="methods" class="api-class-tabpanel">
685 <h2 class="off-left">Methods</h2>
686
687
688 <div id="method_append" class="method item">
689 <h3 class="name"><code>append</code></h3>
690
691
692 <div class="args">
693 <span class="paren">(</span><ul class="args-list inline commas">
694
695 <li class="arg">
696
697 <code>a</code>
698
699 </li>
700
701 <li class="arg">
702
703 <code>b</code>
704
705 </li>
706
707 <li class="arg">
708
709 <code>c</code>
710
711 </li>
712
713 <li class="arg">
714
715 <code>d</code>
716
717 </li>
718
719 <li class="arg">
720
721 <code>tx</code>
722
723 </li>
724
725 <li class="arg">
726
727 <code>ty</code>
728
729 </li>
730
731 </ul><span class="paren">)</span>
732 </div>
733
734
735
736 <span class="returns-inline">
737 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
738 </span>
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753 <div class="meta">
754
755
756
757 <p>
758
759 Defined in
760
761
762
763
764 <a href="../files/easeljs_geom_Matrix2D.js.html#l150"><code>append:150</code></a>
765
766 </p>
767
768
769
770
771
772 </div>
773
774 <div class="description">
775 <p>Appends the specified matrix properties to this matrix. All parameters are required.
776This is the equivalent of multiplying <code>(this matrix) * (specified matrix)</code>.</p>
777
778 </div>
779
780
781 <div class="params">
782 <h4>Parameters:</h4>
783
784 <ul class="params-list">
785
786 <li class="param">
787
788 <code class="param-name">a</code>
789 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
790
791
792
793
794 <div class="param-description">
795
796 </div>
797
798
799 </li>
800
801 <li class="param">
802
803 <code class="param-name">b</code>
804 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
805
806
807
808
809 <div class="param-description">
810
811 </div>
812
813
814 </li>
815
816 <li class="param">
817
818 <code class="param-name">c</code>
819 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
820
821
822
823
824 <div class="param-description">
825
826 </div>
827
828
829 </li>
830
831 <li class="param">
832
833 <code class="param-name">d</code>
834 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
835
836
837
838
839 <div class="param-description">
840
841 </div>
842
843
844 </li>
845
846 <li class="param">
847
848 <code class="param-name">tx</code>
849 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
850
851
852
853
854 <div class="param-description">
855
856 </div>
857
858
859 </li>
860
861 <li class="param">
862
863 <code class="param-name">ty</code>
864 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
865
866
867
868
869 <div class="param-description">
870
871 </div>
872
873
874 </li>
875
876 </ul>
877 </div>
878
879
880
881 <div class="returns">
882 <h4>Returns:</h4>
883
884 <div class="returns-description">
885
886
887 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>:
888
889 <p>This matrix. Useful for chaining method calls.</p>
890
891
892 </div>
893 </div>
894
895
896
897</div>
898
899
900 <div id="method_appendMatrix" class="method item">
901 <h3 class="name"><code>appendMatrix</code></h3>
902
903
904 <div class="args">
905 <span class="paren">(</span><ul class="args-list inline commas">
906
907 <li class="arg">
908
909 <code>matrix</code>
910
911 </li>
912
913 </ul><span class="paren">)</span>
914 </div>
915
916
917
918 <span class="returns-inline">
919 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
920 </span>
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935 <div class="meta">
936
937
938
939 <p>
940
941 Defined in
942
943
944
945
946 <a href="../files/easeljs_geom_Matrix2D.js.html#l205"><code>appendMatrix:205</code></a>
947
948 </p>
949
950
951
952
953
954 </div>
955
956 <div class="description">
957 <p>Appends the specified matrix to this matrix.
958This is the equivalent of multiplying <code>(this matrix) * (specified matrix)</code>.</p>
959
960 </div>
961
962
963 <div class="params">
964 <h4>Parameters:</h4>
965
966 <ul class="params-list">
967
968 <li class="param">
969
970 <code class="param-name">matrix</code>
971 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
972
973
974
975
976 <div class="param-description">
977
978 </div>
979
980
981 </li>
982
983 </ul>
984 </div>
985
986
987
988 <div class="returns">
989 <h4>Returns:</h4>
990
991 <div class="returns-description">
992
993
994 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>:
995
996 <p>This matrix. Useful for chaining method calls.</p>
997
998
999 </div>
1000 </div>
1001
1002
1003
1004</div>
1005
1006
1007 <div id="method_appendTransform" class="method item">
1008 <h3 class="name"><code>appendTransform</code></h3>
1009
1010
1011 <div class="args">
1012 <span class="paren">(</span><ul class="args-list inline commas">
1013
1014 <li class="arg">
1015
1016 <code>x</code>
1017
1018 </li>
1019
1020 <li class="arg">
1021
1022 <code>y</code>
1023
1024 </li>
1025
1026 <li class="arg">
1027
1028 <code>scaleX</code>
1029
1030 </li>
1031
1032 <li class="arg">
1033
1034 <code>scaleY</code>
1035
1036 </li>
1037
1038 <li class="arg">
1039
1040 <code>rotation</code>
1041
1042 </li>
1043
1044 <li class="arg">
1045
1046 <code>skewX</code>
1047
1048 </li>
1049
1050 <li class="arg">
1051
1052 <code>skewY</code>
1053
1054 </li>
1055
1056 <li class="arg">
1057
1058 <code>regX</code>
1059
1060 </li>
1061
1062 <li class="arg">
1063
1064 <code>regY</code>
1065
1066 </li>
1067
1068 </ul><span class="paren">)</span>
1069 </div>
1070
1071
1072
1073 <span class="returns-inline">
1074 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
1075 </span>
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090 <div class="meta">
1091
1092
1093
1094 <p>
1095
1096 Defined in
1097
1098
1099
1100
1101 <a href="../files/easeljs_geom_Matrix2D.js.html#l235"><code>appendTransform:235</code></a>
1102
1103 </p>
1104
1105
1106
1107
1108
1109 </div>
1110
1111 <div class="description">
1112 <p>Generates matrix properties from the specified display object transform properties, and appends them to this matrix.
1113For example, you can use this to generate a matrix representing the transformations of a display object:</p>
1114<pre class="code prettyprint"><code>var mtx = new createjs.Matrix2D();
1115mtx.appendTransform(o.x, o.y, o.scaleX, o.scaleY, o.rotation);</code></pre>
1116
1117 </div>
1118
1119
1120 <div class="params">
1121 <h4>Parameters:</h4>
1122
1123 <ul class="params-list">
1124
1125 <li class="param">
1126
1127 <code class="param-name">x</code>
1128 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
1129
1130
1131
1132
1133 <div class="param-description">
1134
1135 </div>
1136
1137
1138 </li>
1139
1140 <li class="param">
1141
1142 <code class="param-name">y</code>
1143 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
1144
1145
1146
1147
1148 <div class="param-description">
1149
1150 </div>
1151
1152
1153 </li>
1154
1155 <li class="param">
1156
1157 <code class="param-name">scaleX</code>
1158 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
1159
1160
1161
1162
1163 <div class="param-description">
1164
1165 </div>
1166
1167
1168 </li>
1169
1170 <li class="param">
1171
1172 <code class="param-name">scaleY</code>
1173 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
1174
1175
1176
1177
1178 <div class="param-description">
1179
1180 </div>
1181
1182
1183 </li>
1184
1185 <li class="param">
1186
1187 <code class="param-name">rotation</code>
1188 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
1189
1190
1191
1192
1193 <div class="param-description">
1194
1195 </div>
1196
1197
1198 </li>
1199
1200 <li class="param">
1201
1202 <code class="param-name">skewX</code>
1203 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
1204
1205
1206
1207
1208 <div class="param-description">
1209
1210 </div>
1211
1212
1213 </li>
1214
1215 <li class="param">
1216
1217 <code class="param-name">skewY</code>
1218 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
1219
1220
1221
1222
1223 <div class="param-description">
1224
1225 </div>
1226
1227
1228 </li>
1229
1230 <li class="param">
1231
1232 <code class="param-name">regX</code>
1233 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
1234
1235
1236
1237
1238 <div class="param-description">
1239 <p>Optional.</p>
1240
1241 </div>
1242
1243
1244 </li>
1245
1246 <li class="param">
1247
1248 <code class="param-name">regY</code>
1249 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
1250
1251
1252
1253
1254 <div class="param-description">
1255 <p>Optional.</p>
1256
1257 </div>
1258
1259
1260 </li>
1261
1262 </ul>
1263 </div>
1264
1265
1266
1267 <div class="returns">
1268 <h4>Returns:</h4>
1269
1270 <div class="returns-description">
1271
1272
1273 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>:
1274
1275 <p>This matrix. Useful for chaining method calls.</p>
1276
1277
1278 </div>
1279 </div>
1280
1281
1282
1283</div>
1284
1285
1286 <div id="method_clone" class="method item">
1287 <h3 class="name"><code>clone</code></h3>
1288
1289
1290 <span class="paren">()</span>
1291
1292
1293
1294 <span class="returns-inline">
1295 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
1296 </span>
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311 <div class="meta">
1312
1313
1314
1315 <p>
1316
1317 Defined in
1318
1319
1320
1321
1322 <a href="../files/easeljs_geom_Matrix2D.js.html#l507"><code>clone:507</code></a>
1323
1324 </p>
1325
1326
1327
1328
1329
1330 </div>
1331
1332 <div class="description">
1333 <p>Returns a clone of the Matrix2D instance.</p>
1334
1335 </div>
1336
1337
1338
1339
1340 <div class="returns">
1341 <h4>Returns:</h4>
1342
1343 <div class="returns-description">
1344
1345
1346 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>:
1347
1348 <p>a clone of the Matrix2D instance.</p>
1349
1350
1351 </div>
1352 </div>
1353
1354
1355
1356</div>
1357
1358
1359 <div id="method_copy" class="method item">
1360 <h3 class="name"><code>copy</code></h3>
1361
1362
1363 <div class="args">
1364 <span class="paren">(</span><ul class="args-list inline commas">
1365
1366 <li class="arg">
1367
1368 <code>matrix</code>
1369
1370 </li>
1371
1372 </ul><span class="paren">)</span>
1373 </div>
1374
1375
1376
1377 <span class="returns-inline">
1378 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
1379 </span>
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394 <div class="meta">
1395
1396
1397
1398 <p>
1399
1400 Defined in
1401
1402
1403
1404
1405 <a href="../files/easeljs_geom_Matrix2D.js.html#l497"><code>copy:497</code></a>
1406
1407 </p>
1408
1409
1410
1411
1412
1413 </div>
1414
1415 <div class="description">
1416 <p>Copies all properties from the specified matrix to this matrix.</p>
1417
1418 </div>
1419
1420
1421 <div class="params">
1422 <h4>Parameters:</h4>
1423
1424 <ul class="params-list">
1425
1426 <li class="param">
1427
1428 <code class="param-name">matrix</code>
1429 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
1430
1431
1432
1433
1434 <div class="param-description">
1435 <p>The matrix to copy properties from.</p>
1436
1437 </div>
1438
1439
1440 </li>
1441
1442 </ul>
1443 </div>
1444
1445
1446
1447 <div class="returns">
1448 <h4>Returns:</h4>
1449
1450 <div class="returns-description">
1451
1452
1453 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>:
1454
1455 <p>This matrix. Useful for chaining method calls.</p>
1456
1457
1458 </div>
1459 </div>
1460
1461
1462
1463</div>
1464
1465
1466 <div id="method_decompose" class="method item">
1467 <h3 class="name"><code>decompose</code></h3>
1468
1469
1470 <div class="args">
1471 <span class="paren">(</span><ul class="args-list inline commas">
1472
1473 <li class="arg">
1474
1475 <code>target</code>
1476
1477 </li>
1478
1479 </ul><span class="paren">)</span>
1480 </div>
1481
1482
1483
1484 <span class="returns-inline">
1485 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
1486 </span>
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501 <div class="meta">
1502
1503
1504
1505 <p>
1506
1507 Defined in
1508
1509
1510
1511
1512 <a href="../files/easeljs_geom_Matrix2D.js.html#l464"><code>decompose:464</code></a>
1513
1514 </p>
1515
1516
1517
1518
1519
1520 </div>
1521
1522 <div class="description">
1523 <p>Decomposes the matrix into transform properties (x, y, scaleX, scaleY, and rotation). Note that these values
1524may not match the transform properties you used to generate the matrix, though they will produce the same visual
1525results.</p>
1526
1527 </div>
1528
1529
1530 <div class="params">
1531 <h4>Parameters:</h4>
1532
1533 <ul class="params-list">
1534
1535 <li class="param">
1536
1537 <code class="param-name">target</code>
1538 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
1539
1540
1541
1542
1543 <div class="param-description">
1544 <p>The object to apply the transform properties to. If null, then a new object will be returned.</p>
1545
1546 </div>
1547
1548
1549 </li>
1550
1551 </ul>
1552 </div>
1553
1554
1555
1556 <div class="returns">
1557 <h4>Returns:</h4>
1558
1559 <div class="returns-description">
1560
1561
1562 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>:
1563
1564 <p>The target, or a new generic object with the transform properties applied.</p>
1565
1566
1567 </div>
1568 </div>
1569
1570
1571
1572</div>
1573
1574
1575 <div id="method_equals" class="method item">
1576 <h3 class="name"><code>equals</code></h3>
1577
1578
1579 <div class="args">
1580 <span class="paren">(</span><ul class="args-list inline commas">
1581
1582 <li class="arg">
1583
1584 <code>matrix</code>
1585
1586 </li>
1587
1588 </ul><span class="paren">)</span>
1589 </div>
1590
1591
1592
1593 <span class="returns-inline">
1594 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
1595 </span>
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610 <div class="meta">
1611
1612
1613
1614 <p>
1615
1616 Defined in
1617
1618
1619
1620
1621 <a href="../files/easeljs_geom_Matrix2D.js.html#l439"><code>equals:439</code></a>
1622
1623 </p>
1624
1625
1626
1627
1628
1629 </div>
1630
1631 <div class="description">
1632 <p>Returns true if this matrix is equal to the specified matrix (all property values are equal).</p>
1633
1634 </div>
1635
1636
1637 <div class="params">
1638 <h4>Parameters:</h4>
1639
1640 <ul class="params-list">
1641
1642 <li class="param">
1643
1644 <code class="param-name">matrix</code>
1645 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
1646
1647
1648
1649
1650 <div class="param-description">
1651 <p>The matrix to compare.</p>
1652
1653 </div>
1654
1655
1656 </li>
1657
1658 </ul>
1659 </div>
1660
1661
1662
1663 <div class="returns">
1664 <h4>Returns:</h4>
1665
1666 <div class="returns-description">
1667
1668
1669 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
1670
1671
1672 </div>
1673 </div>
1674
1675
1676
1677</div>
1678
1679
1680 <div id="method_identity" class="method item">
1681 <h3 class="name"><code>identity</code></h3>
1682
1683
1684 <span class="paren">()</span>
1685
1686
1687
1688 <span class="returns-inline">
1689 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
1690 </span>
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705 <div class="meta">
1706
1707
1708
1709 <p>
1710
1711 Defined in
1712
1713
1714
1715
1716 <a href="../files/easeljs_geom_Matrix2D.js.html#l397"><code>identity:397</code></a>
1717
1718 </p>
1719
1720
1721
1722
1723
1724 </div>
1725
1726 <div class="description">
1727 <p>Sets the properties of the matrix to those of an identity matrix (one that applies a null transformation).</p>
1728
1729 </div>
1730
1731
1732
1733
1734 <div class="returns">
1735 <h4>Returns:</h4>
1736
1737 <div class="returns-description">
1738
1739
1740 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>:
1741
1742 <p>This matrix. Useful for chaining method calls.</p>
1743
1744
1745 </div>
1746 </div>
1747
1748
1749
1750</div>
1751
1752
1753 <div id="method_invert" class="method item">
1754 <h3 class="name"><code>invert</code></h3>
1755
1756
1757 <span class="paren">()</span>
1758
1759
1760
1761 <span class="returns-inline">
1762 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
1763 </span>
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778 <div class="meta">
1779
1780
1781
1782 <p>
1783
1784 Defined in
1785
1786
1787
1788
1789 <a href="../files/easeljs_geom_Matrix2D.js.html#l408"><code>invert:408</code></a>
1790
1791 </p>
1792
1793
1794
1795
1796
1797 </div>
1798
1799 <div class="description">
1800 <p>Inverts the matrix, causing it to perform the opposite transformation.</p>
1801
1802 </div>
1803
1804
1805
1806
1807 <div class="returns">
1808 <h4>Returns:</h4>
1809
1810 <div class="returns-description">
1811
1812
1813 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>:
1814
1815 <p>This matrix. Useful for chaining method calls.</p>
1816
1817
1818 </div>
1819 </div>
1820
1821
1822
1823</div>
1824
1825
1826 <div id="method_isIdentity" class="method item">
1827 <h3 class="name"><code>isIdentity</code></h3>
1828
1829
1830 <span class="paren">()</span>
1831
1832
1833
1834 <span class="returns-inline">
1835 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
1836 </span>
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851 <div class="meta">
1852
1853
1854
1855 <p>
1856
1857 Defined in
1858
1859
1860
1861
1862 <a href="../files/easeljs_geom_Matrix2D.js.html#l430"><code>isIdentity:430</code></a>
1863
1864 </p>
1865
1866
1867
1868
1869
1870 </div>
1871
1872 <div class="description">
1873 <p>Returns true if the matrix is an identity matrix.</p>
1874
1875 </div>
1876
1877
1878
1879
1880 <div class="returns">
1881 <h4>Returns:</h4>
1882
1883 <div class="returns-description">
1884
1885
1886 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
1887
1888
1889 </div>
1890 </div>
1891
1892
1893
1894</div>
1895
1896
1897 <div id="method_prepend" class="method item">
1898 <h3 class="name"><code>prepend</code></h3>
1899
1900
1901 <div class="args">
1902 <span class="paren">(</span><ul class="args-list inline commas">
1903
1904 <li class="arg">
1905
1906 <code>a</code>
1907
1908 </li>
1909
1910 <li class="arg">
1911
1912 <code>b</code>
1913
1914 </li>
1915
1916 <li class="arg">
1917
1918 <code>c</code>
1919
1920 </li>
1921
1922 <li class="arg">
1923
1924 <code>d</code>
1925
1926 </li>
1927
1928 <li class="arg">
1929
1930 <code>tx</code>
1931
1932 </li>
1933
1934 <li class="arg">
1935
1936 <code>ty</code>
1937
1938 </li>
1939
1940 </ul><span class="paren">)</span>
1941 </div>
1942
1943
1944
1945 <span class="returns-inline">
1946 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
1947 </span>
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962 <div class="meta">
1963
1964
1965
1966 <p>
1967
1968 Defined in
1969
1970
1971
1972
1973 <a href="../files/easeljs_geom_Matrix2D.js.html#l178"><code>prepend:178</code></a>
1974
1975 </p>
1976
1977
1978
1979
1980
1981 </div>
1982
1983 <div class="description">
1984 <p>Prepends the specified matrix properties to this matrix.
1985This is the equivalent of multiplying <code>(specified matrix) * (this matrix)</code>.
1986All parameters are required.</p>
1987
1988 </div>
1989
1990
1991 <div class="params">
1992 <h4>Parameters:</h4>
1993
1994 <ul class="params-list">
1995
1996 <li class="param">
1997
1998 <code class="param-name">a</code>
1999 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
2000
2001
2002
2003
2004 <div class="param-description">
2005
2006 </div>
2007
2008
2009 </li>
2010
2011 <li class="param">
2012
2013 <code class="param-name">b</code>
2014 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
2015
2016
2017
2018
2019 <div class="param-description">
2020
2021 </div>
2022
2023
2024 </li>
2025
2026 <li class="param">
2027
2028 <code class="param-name">c</code>
2029 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
2030
2031
2032
2033
2034 <div class="param-description">
2035
2036 </div>
2037
2038
2039 </li>
2040
2041 <li class="param">
2042
2043 <code class="param-name">d</code>
2044 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
2045
2046
2047
2048
2049 <div class="param-description">
2050
2051 </div>
2052
2053
2054 </li>
2055
2056 <li class="param">
2057
2058 <code class="param-name">tx</code>
2059 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
2060
2061
2062
2063
2064 <div class="param-description">
2065
2066 </div>
2067
2068
2069 </li>
2070
2071 <li class="param">
2072
2073 <code class="param-name">ty</code>
2074 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
2075
2076
2077
2078
2079 <div class="param-description">
2080
2081 </div>
2082
2083
2084 </li>
2085
2086 </ul>
2087 </div>
2088
2089
2090
2091 <div class="returns">
2092 <h4>Returns:</h4>
2093
2094 <div class="returns-description">
2095
2096
2097 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>:
2098
2099 <p>This matrix. Useful for chaining method calls.</p>
2100
2101
2102 </div>
2103 </div>
2104
2105
2106
2107</div>
2108
2109
2110 <div id="method_prependMatrix" class="method item">
2111 <h3 class="name"><code>prependMatrix</code></h3>
2112
2113
2114 <div class="args">
2115 <span class="paren">(</span><ul class="args-list inline commas">
2116
2117 <li class="arg">
2118
2119 <code>matrix</code>
2120
2121 </li>
2122
2123 </ul><span class="paren">)</span>
2124 </div>
2125
2126
2127
2128 <span class="returns-inline">
2129 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
2130 </span>
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145 <div class="meta">
2146
2147
2148
2149 <p>
2150
2151 Defined in
2152
2153
2154
2155
2156 <a href="../files/easeljs_geom_Matrix2D.js.html#l216"><code>prependMatrix:216</code></a>
2157
2158 </p>
2159
2160
2161
2162
2163
2164 </div>
2165
2166 <div class="description">
2167 <p>Prepends the specified matrix to this matrix.
2168This is the equivalent of multiplying <code>(specified matrix) * (this matrix)</code>.
2169For example, you could calculate the combined transformation for a child object using:</p>
2170<pre class="code prettyprint"><code>var o = myDisplayObject;
2171var mtx = o.getMatrix();
2172while (o = o.parent) {
2173 // prepend each parent's transformation in turn:
2174 o.prependMatrix(o.getMatrix());
2175}</code></pre>
2176
2177 </div>
2178
2179
2180 <div class="params">
2181 <h4>Parameters:</h4>
2182
2183 <ul class="params-list">
2184
2185 <li class="param">
2186
2187 <code class="param-name">matrix</code>
2188 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
2189
2190
2191
2192
2193 <div class="param-description">
2194
2195 </div>
2196
2197
2198 </li>
2199
2200 </ul>
2201 </div>
2202
2203
2204
2205 <div class="returns">
2206 <h4>Returns:</h4>
2207
2208 <div class="returns-description">
2209
2210
2211 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>:
2212
2213 <p>This matrix. Useful for chaining method calls.</p>
2214
2215
2216 </div>
2217 </div>
2218
2219
2220
2221</div>
2222
2223
2224 <div id="method_prependTransform" class="method item">
2225 <h3 class="name"><code>prependTransform</code></h3>
2226
2227
2228 <div class="args">
2229 <span class="paren">(</span><ul class="args-list inline commas">
2230
2231 <li class="arg">
2232
2233 <code>x</code>
2234
2235 </li>
2236
2237 <li class="arg">
2238
2239 <code>y</code>
2240
2241 </li>
2242
2243 <li class="arg">
2244
2245 <code>scaleX</code>
2246
2247 </li>
2248
2249 <li class="arg">
2250
2251 <code>scaleY</code>
2252
2253 </li>
2254
2255 <li class="arg">
2256
2257 <code>rotation</code>
2258
2259 </li>
2260
2261 <li class="arg">
2262
2263 <code>skewX</code>
2264
2265 </li>
2266
2267 <li class="arg">
2268
2269 <code>skewY</code>
2270
2271 </li>
2272
2273 <li class="arg">
2274
2275 <code>regX</code>
2276
2277 </li>
2278
2279 <li class="arg">
2280
2281 <code>regY</code>
2282
2283 </li>
2284
2285 </ul><span class="paren">)</span>
2286 </div>
2287
2288
2289
2290 <span class="returns-inline">
2291 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
2292 </span>
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307 <div class="meta">
2308
2309
2310
2311 <p>
2312
2313 Defined in
2314
2315
2316
2317
2318 <a href="../files/easeljs_geom_Matrix2D.js.html#l281"><code>prependTransform:281</code></a>
2319
2320 </p>
2321
2322
2323
2324
2325
2326 </div>
2327
2328 <div class="description">
2329 <p>Generates matrix properties from the specified display object transform properties, and prepends them to this matrix.
2330For example, you could calculate the combined transformation for a child object using:</p>
2331<pre class="code prettyprint"><code>var o = myDisplayObject;
2332var mtx = new createjs.Matrix2D();
2333do {
2334 // prepend each parent's transformation in turn:
2335 mtx.prependTransform(o.x, o.y, o.scaleX, o.scaleY, o.rotation, o.skewX, o.skewY, o.regX, o.regY);
2336} while (o = o.parent);
2337
2338Note that the above example would not account for <a href="../classes/DisplayObject.html#property_transformMatrix" class="crosslink">transformMatrix</a>
2339values. See <a href="../classes/Matrix2D.html#method_prependMatrix" class="crosslink">prependMatrix</a> for an example that does.</code></pre>
2340
2341 </div>
2342
2343
2344 <div class="params">
2345 <h4>Parameters:</h4>
2346
2347 <ul class="params-list">
2348
2349 <li class="param">
2350
2351 <code class="param-name">x</code>
2352 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
2353
2354
2355
2356
2357 <div class="param-description">
2358
2359 </div>
2360
2361
2362 </li>
2363
2364 <li class="param">
2365
2366 <code class="param-name">y</code>
2367 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
2368
2369
2370
2371
2372 <div class="param-description">
2373
2374 </div>
2375
2376
2377 </li>
2378
2379 <li class="param">
2380
2381 <code class="param-name">scaleX</code>
2382 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
2383
2384
2385
2386
2387 <div class="param-description">
2388
2389 </div>
2390
2391
2392 </li>
2393
2394 <li class="param">
2395
2396 <code class="param-name">scaleY</code>
2397 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
2398
2399
2400
2401
2402 <div class="param-description">
2403
2404 </div>
2405
2406
2407 </li>
2408
2409 <li class="param">
2410
2411 <code class="param-name">rotation</code>
2412 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
2413
2414
2415
2416
2417 <div class="param-description">
2418
2419 </div>
2420
2421
2422 </li>
2423
2424 <li class="param">
2425
2426 <code class="param-name">skewX</code>
2427 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
2428
2429
2430
2431
2432 <div class="param-description">
2433
2434 </div>
2435
2436
2437 </li>
2438
2439 <li class="param">
2440
2441 <code class="param-name">skewY</code>
2442 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
2443
2444
2445
2446
2447 <div class="param-description">
2448
2449 </div>
2450
2451
2452 </li>
2453
2454 <li class="param">
2455
2456 <code class="param-name">regX</code>
2457 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
2458
2459
2460
2461
2462 <div class="param-description">
2463 <p>Optional.</p>
2464
2465 </div>
2466
2467
2468 </li>
2469
2470 <li class="param">
2471
2472 <code class="param-name">regY</code>
2473 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
2474
2475
2476
2477
2478 <div class="param-description">
2479 <p>Optional.</p>
2480
2481 </div>
2482
2483
2484 </li>
2485
2486 </ul>
2487 </div>
2488
2489
2490
2491 <div class="returns">
2492 <h4>Returns:</h4>
2493
2494 <div class="returns-description">
2495
2496
2497 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>:
2498
2499 <p>This matrix. Useful for chaining method calls.</p>
2500
2501
2502 </div>
2503 </div>
2504
2505
2506
2507</div>
2508
2509
2510 <div id="method_rotate" class="method item">
2511 <h3 class="name"><code>rotate</code></h3>
2512
2513
2514 <div class="args">
2515 <span class="paren">(</span><ul class="args-list inline commas">
2516
2517 <li class="arg">
2518
2519 <code>angle</code>
2520
2521 </li>
2522
2523 </ul><span class="paren">)</span>
2524 </div>
2525
2526
2527
2528 <span class="returns-inline">
2529 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
2530 </span>
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545 <div class="meta">
2546
2547
2548
2549 <p>
2550
2551 Defined in
2552
2553
2554
2555
2556 <a href="../files/easeljs_geom_Matrix2D.js.html#l332"><code>rotate:332</code></a>
2557
2558 </p>
2559
2560
2561
2562
2563
2564 </div>
2565
2566 <div class="description">
2567 <p>Applies a clockwise rotation transformation to the matrix.</p>
2568
2569 </div>
2570
2571
2572 <div class="params">
2573 <h4>Parameters:</h4>
2574
2575 <ul class="params-list">
2576
2577 <li class="param">
2578
2579 <code class="param-name">angle</code>
2580 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
2581
2582
2583
2584
2585 <div class="param-description">
2586 <p>The angle to rotate by, in degrees. To use a value in radians, multiply it by <code>180/Math.PI</code>.</p>
2587
2588 </div>
2589
2590
2591 </li>
2592
2593 </ul>
2594 </div>
2595
2596
2597
2598 <div class="returns">
2599 <h4>Returns:</h4>
2600
2601 <div class="returns-description">
2602
2603
2604 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>:
2605
2606 <p>This matrix. Useful for chaining method calls.</p>
2607
2608
2609 </div>
2610 </div>
2611
2612
2613
2614</div>
2615
2616
2617 <div id="method_scale" class="method item">
2618 <h3 class="name"><code>scale</code></h3>
2619
2620
2621 <div class="args">
2622 <span class="paren">(</span><ul class="args-list inline commas">
2623
2624 <li class="arg">
2625
2626 <code>x</code>
2627
2628 </li>
2629
2630 <li class="arg">
2631
2632 <code>y</code>
2633
2634 </li>
2635
2636 </ul><span class="paren">)</span>
2637 </div>
2638
2639
2640
2641 <span class="returns-inline">
2642 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
2643 </span>
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658 <div class="meta">
2659
2660
2661
2662 <p>
2663
2664 Defined in
2665
2666
2667
2668
2669 <a href="../files/easeljs_geom_Matrix2D.js.html#l367"><code>scale:367</code></a>
2670
2671 </p>
2672
2673
2674
2675
2676
2677 </div>
2678
2679 <div class="description">
2680 <p>Applies a scale transformation to the matrix.</p>
2681
2682 </div>
2683
2684
2685 <div class="params">
2686 <h4>Parameters:</h4>
2687
2688 <ul class="params-list">
2689
2690 <li class="param">
2691
2692 <code class="param-name">x</code>
2693 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
2694
2695
2696
2697
2698 <div class="param-description">
2699 <p>The amount to scale horizontally. E.G. a value of 2 will double the size in the X direction, and 0.5 will halve it.</p>
2700
2701 </div>
2702
2703
2704 </li>
2705
2706 <li class="param">
2707
2708 <code class="param-name">y</code>
2709 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
2710
2711
2712
2713
2714 <div class="param-description">
2715 <p>The amount to scale vertically.</p>
2716
2717 </div>
2718
2719
2720 </li>
2721
2722 </ul>
2723 </div>
2724
2725
2726
2727 <div class="returns">
2728 <h4>Returns:</h4>
2729
2730 <div class="returns-description">
2731
2732
2733 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>:
2734
2735 <p>This matrix. Useful for chaining method calls.</p>
2736
2737
2738 </div>
2739 </div>
2740
2741
2742
2743</div>
2744
2745
2746 <div id="method_setValues" class="method item">
2747 <h3 class="name"><code>setValues</code></h3>
2748
2749
2750 <div class="args">
2751 <span class="paren">(</span><ul class="args-list inline commas">
2752
2753 <li class="arg">
2754
2755 <code class="optional">[a=1]</code>
2756
2757 </li>
2758
2759 <li class="arg">
2760
2761 <code class="optional">[b=0]</code>
2762
2763 </li>
2764
2765 <li class="arg">
2766
2767 <code class="optional">[c=0]</code>
2768
2769 </li>
2770
2771 <li class="arg">
2772
2773 <code class="optional">[d=1]</code>
2774
2775 </li>
2776
2777 <li class="arg">
2778
2779 <code class="optional">[tx=0]</code>
2780
2781 </li>
2782
2783 <li class="arg">
2784
2785 <code class="optional">[ty=0]</code>
2786
2787 </li>
2788
2789 </ul><span class="paren">)</span>
2790 </div>
2791
2792
2793
2794 <span class="returns-inline">
2795 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
2796 </span>
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811 <div class="meta">
2812
2813
2814
2815 <p>
2816
2817 Defined in
2818
2819
2820
2821
2822 <a href="../files/easeljs_geom_Matrix2D.js.html#l128"><code>setValues:128</code></a>
2823
2824 </p>
2825
2826
2827
2828
2829
2830 </div>
2831
2832 <div class="description">
2833 <p>Sets the specified values on this instance.</p>
2834
2835 </div>
2836
2837
2838 <div class="params">
2839 <h4>Parameters:</h4>
2840
2841 <ul class="params-list">
2842
2843 <li class="param">
2844
2845 <code class="param-name optional">[a=1]</code>
2846 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
2847 <span class="flag optional" title="This parameter is optional.">optional</span>
2848
2849
2850
2851
2852 <div class="param-description">
2853 <p>Specifies the a property for the new matrix.</p>
2854
2855 </div>
2856
2857
2858 </li>
2859
2860 <li class="param">
2861
2862 <code class="param-name optional">[b=0]</code>
2863 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
2864 <span class="flag optional" title="This parameter is optional.">optional</span>
2865
2866
2867
2868
2869 <div class="param-description">
2870 <p>Specifies the b property for the new matrix.</p>
2871
2872 </div>
2873
2874
2875 </li>
2876
2877 <li class="param">
2878
2879 <code class="param-name optional">[c=0]</code>
2880 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
2881 <span class="flag optional" title="This parameter is optional.">optional</span>
2882
2883
2884
2885
2886 <div class="param-description">
2887 <p>Specifies the c property for the new matrix.</p>
2888
2889 </div>
2890
2891
2892 </li>
2893
2894 <li class="param">
2895
2896 <code class="param-name optional">[d=1]</code>
2897 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
2898 <span class="flag optional" title="This parameter is optional.">optional</span>
2899
2900
2901
2902
2903 <div class="param-description">
2904 <p>Specifies the d property for the new matrix.</p>
2905
2906 </div>
2907
2908
2909 </li>
2910
2911 <li class="param">
2912
2913 <code class="param-name optional">[tx=0]</code>
2914 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
2915 <span class="flag optional" title="This parameter is optional.">optional</span>
2916
2917
2918
2919
2920 <div class="param-description">
2921 <p>Specifies the tx property for the new matrix.</p>
2922
2923 </div>
2924
2925
2926 </li>
2927
2928 <li class="param">
2929
2930 <code class="param-name optional">[ty=0]</code>
2931 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
2932 <span class="flag optional" title="This parameter is optional.">optional</span>
2933
2934
2935
2936
2937 <div class="param-description">
2938 <p>Specifies the ty property for the new matrix.</p>
2939
2940 </div>
2941
2942
2943 </li>
2944
2945 </ul>
2946 </div>
2947
2948
2949
2950 <div class="returns">
2951 <h4>Returns:</h4>
2952
2953 <div class="returns-description">
2954
2955
2956 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>:
2957
2958 <p>This instance. Useful for chaining method calls.</p>
2959
2960
2961 </div>
2962 </div>
2963
2964
2965
2966</div>
2967
2968
2969 <div id="method_skew" class="method item">
2970 <h3 class="name"><code>skew</code></h3>
2971
2972
2973 <div class="args">
2974 <span class="paren">(</span><ul class="args-list inline commas">
2975
2976 <li class="arg">
2977
2978 <code>skewX</code>
2979
2980 </li>
2981
2982 <li class="arg">
2983
2984 <code>skewY</code>
2985
2986 </li>
2987
2988 </ul><span class="paren">)</span>
2989 </div>
2990
2991
2992
2993 <span class="returns-inline">
2994 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
2995 </span>
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010 <div class="meta">
3011
3012
3013
3014 <p>
3015
3016 Defined in
3017
3018
3019
3020
3021 <a href="../files/easeljs_geom_Matrix2D.js.html#l353"><code>skew:353</code></a>
3022
3023 </p>
3024
3025
3026
3027
3028
3029 </div>
3030
3031 <div class="description">
3032 <p>Applies a skew transformation to the matrix.</p>
3033
3034 </div>
3035
3036
3037 <div class="params">
3038 <h4>Parameters:</h4>
3039
3040 <ul class="params-list">
3041
3042 <li class="param">
3043
3044 <code class="param-name">skewX</code>
3045 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
3046
3047
3048
3049
3050 <div class="param-description">
3051 <p>The amount to skew horizontally in degrees. To use a value in radians, multiply it by <code>180/Math.PI</code>.</p>
3052
3053 </div>
3054
3055
3056 </li>
3057
3058 <li class="param">
3059
3060 <code class="param-name">skewY</code>
3061 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
3062
3063
3064
3065
3066 <div class="param-description">
3067 <p>The amount to skew vertically in degrees.</p>
3068
3069 </div>
3070
3071
3072 </li>
3073
3074 </ul>
3075 </div>
3076
3077
3078
3079 <div class="returns">
3080 <h4>Returns:</h4>
3081
3082 <div class="returns-description">
3083
3084
3085 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>:
3086
3087 <p>This matrix. Useful for chaining method calls.</p>
3088
3089
3090 </div>
3091 </div>
3092
3093
3094
3095</div>
3096
3097
3098 <div id="method_toString" class="method item">
3099 <h3 class="name"><code>toString</code></h3>
3100
3101
3102 <span class="paren">()</span>
3103
3104
3105
3106 <span class="returns-inline">
3107 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
3108 </span>
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123 <div class="meta">
3124
3125
3126
3127 <p>
3128
3129 Defined in
3130
3131
3132
3133
3134 <a href="../files/easeljs_geom_Matrix2D.js.html#l516"><code>toString:516</code></a>
3135
3136 </p>
3137
3138
3139
3140
3141
3142 </div>
3143
3144 <div class="description">
3145 <p>Returns a string representation of this object.</p>
3146
3147 </div>
3148
3149
3150
3151
3152 <div class="returns">
3153 <h4>Returns:</h4>
3154
3155 <div class="returns-description">
3156
3157
3158 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>:
3159
3160 <p>a string representation of the instance.</p>
3161
3162
3163 </div>
3164 </div>
3165
3166
3167
3168</div>
3169
3170
3171 <div id="method_transformPoint" class="method item">
3172 <h3 class="name"><code>transformPoint</code></h3>
3173
3174
3175 <div class="args">
3176 <span class="paren">(</span><ul class="args-list inline commas">
3177
3178 <li class="arg">
3179
3180 <code>x</code>
3181
3182 </li>
3183
3184 <li class="arg">
3185
3186 <code>y</code>
3187
3188 </li>
3189
3190 <li class="arg">
3191
3192 <code class="optional">[pt]</code>
3193
3194 </li>
3195
3196 </ul><span class="paren">)</span>
3197 </div>
3198
3199
3200
3201 <span class="returns-inline">
3202 <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a></span>
3203 </span>
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218 <div class="meta">
3219
3220
3221
3222 <p>
3223
3224 Defined in
3225
3226
3227
3228
3229 <a href="../files/easeljs_geom_Matrix2D.js.html#l449"><code>transformPoint:449</code></a>
3230
3231 </p>
3232
3233
3234
3235
3236
3237 </div>
3238
3239 <div class="description">
3240 <p>Transforms a point according to this matrix.</p>
3241
3242 </div>
3243
3244
3245 <div class="params">
3246 <h4>Parameters:</h4>
3247
3248 <ul class="params-list">
3249
3250 <li class="param">
3251
3252 <code class="param-name">x</code>
3253 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
3254
3255
3256
3257
3258 <div class="param-description">
3259 <p>The x component of the point to transform.</p>
3260
3261 </div>
3262
3263
3264 </li>
3265
3266 <li class="param">
3267
3268 <code class="param-name">y</code>
3269 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
3270
3271
3272
3273
3274 <div class="param-description">
3275 <p>The y component of the point to transform.</p>
3276
3277 </div>
3278
3279
3280 </li>
3281
3282 <li class="param">
3283
3284 <code class="param-name optional">[pt]</code>
3285 <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
3286 <span class="flag optional" title="This parameter is optional.">optional</span>
3287
3288
3289
3290
3291 <div class="param-description">
3292 <p>An object to copy the result into. If omitted a generic object with x/y properties will be returned.</p>
3293
3294 </div>
3295
3296
3297 </li>
3298
3299 </ul>
3300 </div>
3301
3302
3303
3304 <div class="returns">
3305 <h4>Returns:</h4>
3306
3307 <div class="returns-description">
3308
3309
3310 <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a></span>:
3311
3312 <p>This matrix. Useful for chaining method calls.</p>
3313
3314
3315 </div>
3316 </div>
3317
3318
3319
3320</div>
3321
3322
3323 <div id="method_translate" class="method item">
3324 <h3 class="name"><code>translate</code></h3>
3325
3326
3327 <div class="args">
3328 <span class="paren">(</span><ul class="args-list inline commas">
3329
3330 <li class="arg">
3331
3332 <code>x</code>
3333
3334 </li>
3335
3336 <li class="arg">
3337
3338 <code>y</code>
3339
3340 </li>
3341
3342 </ul><span class="paren">)</span>
3343 </div>
3344
3345
3346
3347 <span class="returns-inline">
3348 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
3349 </span>
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364 <div class="meta">
3365
3366
3367
3368 <p>
3369
3370 Defined in
3371
3372
3373
3374
3375 <a href="../files/easeljs_geom_Matrix2D.js.html#l384"><code>translate:384</code></a>
3376
3377 </p>
3378
3379
3380
3381
3382
3383 </div>
3384
3385 <div class="description">
3386 <p>Translates the matrix on the x and y axes.</p>
3387
3388 </div>
3389
3390
3391 <div class="params">
3392 <h4>Parameters:</h4>
3393
3394 <ul class="params-list">
3395
3396 <li class="param">
3397
3398 <code class="param-name">x</code>
3399 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
3400
3401
3402
3403
3404 <div class="param-description">
3405
3406 </div>
3407
3408
3409 </li>
3410
3411 <li class="param">
3412
3413 <code class="param-name">y</code>
3414 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
3415
3416
3417
3418
3419 <div class="param-description">
3420
3421 </div>
3422
3423
3424 </li>
3425
3426 </ul>
3427 </div>
3428
3429
3430
3431 <div class="returns">
3432 <h4>Returns:</h4>
3433
3434 <div class="returns-description">
3435
3436
3437 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>:
3438
3439 <p>This matrix. Useful for chaining method calls.</p>
3440
3441
3442 </div>
3443 </div>
3444
3445
3446
3447</div>
3448
3449
3450 </div>
3451
3452
3453
3454 <div id="properties" class="api-class-tabpanel">
3455 <h2 class="off-left">Properties</h2>
3456
3457
3458 <div id="property_a" class="property item">
3459 <h3 class="name"><code>a</code></h3>
3460 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472 <div class="meta">
3473
3474
3475
3476 <p>
3477
3478 Defined in
3479
3480
3481
3482
3483 <a href="../files/easeljs_geom_Matrix2D.js.html#l66"><code>a:66</code></a>
3484
3485 </p>
3486
3487
3488
3489
3490 </div>
3491
3492 <div class="description">
3493 <p>Position (0, 0) in a 3x3 affine transformation matrix.</p>
3494
3495 </div>
3496
3497
3498
3499
3500
3501
3502</div>
3503
3504
3505 <div id="property_b" class="property item">
3506 <h3 class="name"><code>b</code></h3>
3507 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519 <div class="meta">
3520
3521
3522
3523 <p>
3524
3525 Defined in
3526
3527
3528
3529
3530 <a href="../files/easeljs_geom_Matrix2D.js.html#l72"><code>b:72</code></a>
3531
3532 </p>
3533
3534
3535
3536
3537 </div>
3538
3539 <div class="description">
3540 <p>Position (0, 1) in a 3x3 affine transformation matrix.</p>
3541
3542 </div>
3543
3544
3545
3546
3547
3548
3549</div>
3550
3551
3552 <div id="property_c" class="property item">
3553 <h3 class="name"><code>c</code></h3>
3554 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566 <div class="meta">
3567
3568
3569
3570 <p>
3571
3572 Defined in
3573
3574
3575
3576
3577 <a href="../files/easeljs_geom_Matrix2D.js.html#l78"><code>c:78</code></a>
3578
3579 </p>
3580
3581
3582
3583
3584 </div>
3585
3586 <div class="description">
3587 <p>Position (1, 0) in a 3x3 affine transformation matrix.</p>
3588
3589 </div>
3590
3591
3592
3593
3594
3595
3596</div>
3597
3598
3599 <div id="property_d" class="property item">
3600 <h3 class="name"><code>d</code></h3>
3601 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613 <div class="meta">
3614
3615
3616
3617 <p>
3618
3619 Defined in
3620
3621
3622
3623
3624 <a href="../files/easeljs_geom_Matrix2D.js.html#l84"><code>d:84</code></a>
3625
3626 </p>
3627
3628
3629
3630
3631 </div>
3632
3633 <div class="description">
3634 <p>Position (1, 1) in a 3x3 affine transformation matrix.</p>
3635
3636 </div>
3637
3638
3639
3640
3641
3642
3643</div>
3644
3645
3646 <div id="property_DEG_TO_RAD" class="property item">
3647 <h3 class="name"><code>DEG_TO_RAD</code></h3>
3648 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
3649
3650
3651
3652
3653
3654
3655 <span class="flag final">final</span>
3656
3657
3658
3659 <span class="flag static">static</span>
3660
3661
3662
3663 <span class="flag readonly">readonly</span>
3664
3665
3666 <div class="meta">
3667
3668
3669
3670 <p>
3671
3672 Defined in
3673
3674
3675
3676
3677 <a href="../files/easeljs_geom_Matrix2D.js.html#l105"><code>DEG_TO_RAD:105</code></a>
3678
3679 </p>
3680
3681
3682
3683
3684 </div>
3685
3686 <div class="description">
3687 <p>Multiplier for converting degrees to radians. Used internally by Matrix2D.</p>
3688
3689 </div>
3690
3691
3692
3693
3694
3695
3696</div>
3697
3698
3699 <div id="property_identity" class="property item">
3700 <h3 class="name"><code>identity</code></h3>
3701 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
3702
3703
3704
3705
3706
3707
3708
3709
3710 <span class="flag static">static</span>
3711
3712
3713
3714 <span class="flag readonly">readonly</span>
3715
3716
3717 <div class="meta">
3718
3719
3720
3721 <p>
3722
3723 Defined in
3724
3725
3726
3727
3728 <a href="../files/easeljs_geom_Matrix2D.js.html#l117"><code>identity:117</code></a>
3729
3730 </p>
3731
3732
3733
3734
3735 </div>
3736
3737 <div class="description">
3738 <p>An identity matrix, representing a null transformation.</p>
3739
3740 </div>
3741
3742
3743
3744
3745
3746
3747</div>
3748
3749
3750 <div id="property_tx" class="property item">
3751 <h3 class="name"><code>tx</code></h3>
3752 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764 <div class="meta">
3765
3766
3767
3768 <p>
3769
3770 Defined in
3771
3772
3773
3774
3775 <a href="../files/easeljs_geom_Matrix2D.js.html#l90"><code>tx:90</code></a>
3776
3777 </p>
3778
3779
3780
3781
3782 </div>
3783
3784 <div class="description">
3785 <p>Position (2, 0) in a 3x3 affine transformation matrix.</p>
3786
3787 </div>
3788
3789
3790
3791
3792
3793
3794</div>
3795
3796
3797 <div id="property_ty" class="property item">
3798 <h3 class="name"><code>ty</code></h3>
3799 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811 <div class="meta">
3812
3813
3814
3815 <p>
3816
3817 Defined in
3818
3819
3820
3821
3822 <a href="../files/easeljs_geom_Matrix2D.js.html#l96"><code>ty:96</code></a>
3823
3824 </p>
3825
3826
3827
3828
3829 </div>
3830
3831 <div class="description">
3832 <p>Position (2, 1) in a 3x3 affine transformation matrix.</p>
3833
3834 </div>
3835
3836
3837
3838
3839
3840
3841</div>
3842
3843
3844 </div>
3845
3846
3847
3848
3849
3850 </div>
3851</div>
3852
3853 </div>
3854 </div>
3855 </div>
3856 </div>
3857 </div>
3858</div>
3859<script src="../assets/vendor/prettify/prettify-min.js"></script>
3860<script>prettyPrint();</script>
3861<script src="../assets/js/yui-prettify.js"></script>
3862<script src="../assets/../api.js"></script>
3863<script src="../assets/js/api-filter.js"></script>
3864<script src="../assets/js/api-list.js"></script>
3865<script src="../assets/js/api-search.js"></script>
3866<script src="../assets/js/apidocs.js"></script>
3867</body>
3868</html>