Ardillo\DrawMatrix
On this page
Description
Ardillo base DrawMatrix class.
Properties
DrawMatrix::$app
Associated App instance
- type:
App
Methods
DrawMatrix::isValid()
Returns whether the matrix is valid or not
Returns bool
DrawMatrix::setIdentity()
Sets the matrix to the identity matrix
DrawMatrix::translate(float $x, float $y)
Applies a translation to the matrix
float $x
: The X coordinate of the translationfloat $y
: The Y coordinate of the translation