API Docs for: 1.6.0
Show:

Matrix Class

Module: PIXI

The Matrix class is now an object, which makes it a lot faster, here is a representation of it : | a | b | tx| | c | d | ty| | 0 | 0 | 1 |

Constructor

Matrix

()

Item Index

Methods

Methods

fromArray

(
  • array
)

Creates a pixi matrix object based on the array given as a parameter

Parameters:

  • array Array

    The array that the matrix will be filled with

toArray

(
  • transpose
)
Array

Creates an array from the current Matrix object

Parameters:

  • transpose Boolean

    Whether we need to transpose the matrix or not

Returns:

Array:

the newly created array which contains the matrix