SWF::Matrix3pm
Swf matrix class
Usage
use SWF::Matrix;$matrix = $displayItem->getMatrix();$scaleX = $matrix->getScaleX();
Overview
SWF::Matrix is a helper class useful for getting information about a display items's matrix. There is no constructor method, SWF::Matrix objects are available only thru SWF::DisplayItem's getMatrix() method. The methods below give you read access to the six matrix elements.
Methods
$scaleX = $matrix->getScaleX()
|
Returns X scale. |
|---|---|
$scaleY = $matrix->getScaleY()
|
Returns Y scale. |
$rot0 = $matrix->getRotate0()
|
Returns rotation value 0. |
$rot1 = $matrix->getRotate1()
|
Returns rotation value 1. |
$trX = $matrix->getTranslateX()
|
Returns X translation value. |
$trY = $matrix->getTranslateY()
|
Returns Y translation value. |
Releases
2 releases since Debian 6.0 (Squeeze); the text changed 1 time.