Matrix translate [AS 2]
Klasa: Matrix
Kompatybilność: ActionScript 1.0, Flash 8+
Zmienia obiekt Matrix, aby efekt transformacji, kiedy nadany, miał przesunąć obiekt wzdłuż osi x oraz y .
Metoda translate()
modyfikuje właściwości tx
oraz ty
obiektu matrix. W notacji matrix wyglądałoby to następująco:
Listing
translate(tx:Number, ty:Number) : Void
import flash.geom.Matrix;
var mojMatrix:Matrix = new Matrix(2, 0, 0, 2, 100, 100);
trace(mojMatrix.toString()); // (a=2, b=0, c=0, d=2, tx=100, ty=100)
mojMatrix.translate(100, 50);
trace(mojMatrix.toString()); // (a=2, b=0, c=0, d=2, tx=200, ty=150)
import flash.geom.Matrix;
var mojMatrix:Matrix = new Matrix(2, 0, 0, 2, 100, 100);
trace(mojMatrix.toString()); // (a=2, b=0, c=0, d=2, tx=100, ty=100)
mojMatrix.translate(100, 50);
trace(mojMatrix.toString()); // (a=2, b=0, c=0, d=2, tx=200, ty=150)
Dodano przez: divix
Ranga: Administrator serwisu Punktów: 0
Ranga: Administrator serwisu Punktów: 0
Komentarze użytkowników
:: Losowe artykuły

:: Wymiana linków

Modowe inspiracje |
Android Gry i Aplikacje |
ZaplanujTransport.pl: Przeprowadzki, transport, aukcje |
Logo dla firmy |
Change Tires - Car Weather Forecast Reminder |
Laminas: MVC Framework for PHP |
IT Books Reviews and Programming: JS, JAVA, PHP, ANDROID, CSS |
Katalog roślin |
Programming articles: JAVA, PHP, C++, Python, JavaScript |
Kancelaria Adwokacka Łukasz Huszno