Ardillo\DrawMatrix

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 translation
  • float $y: The Y coordinate of the translation