Class: PIXI::Matrix

Inherits:
Object
  • Object
show all
Includes:
Native
Defined in:
lib/opal/pixi/core/math/matrix.rb

Class Method Summary collapse

Class Method Details

.new(x_or_native, y) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/opal/pixi/core/math/matrix.rb', line 5

def self.new(x_or_native, y)
  if native?(x_or_native)
    super(x_or_native)
  else
    super(`new PIXI.Matrix(x_or_native, y)`)
  end
end