Adobe Extending Flash Professional CS5 Manuale Utente Pagina 361

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 565
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 360
339
EXTENDING FLASH PROFESSIONAL
Math object
Last updated 5/2/2011
Math.invertMatrix()
Availability
Flash MX 2004.
Usage
Math.invertMatrix(mat)
Parameters
mat Indicates the Matrix object to invert (see Matrix object). It must have the following fields: a, b, c, d, tx, and ty.
Returns
A Matrix object that is the inverse of the original matrix.
Description
Method; returns the inverse of the specified matrix.
Example
The following example stores the currently selected object in the elt variable, assigns that matrix to the mat variable,
and stores the inverse of the matrix in the
inv variable:
var elt = fl.getDocumentDOM().selection[0];
var mat = elt.matrix;
var inv = fl.Math.invertMatrix( mat );
Math.pointDistance()
Availability
Flash MX 2004.
Usage
Math.pointDistance(pt1, pt2)
Parameters
pt1, pt2 Specify the points between which distance is measured.
Returns
A floating-point value that represents the distance between the points.
Description
Method; computes the distance between two points.
Vedere la pagina 360
1 2 ... 356 357 358 359 360 361 362 363 364 365 366 ... 564 565

Commenti su questo manuale

Nessun commento