Difference between revisions of "Matrix:setElements"
From GiderosMobile
Line 2: | Line 2: | ||
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
=== Description === | === Description === | ||
− | <br /> | + | <translate><br /> |
Sets all 6 elements of the matrix.<br /> | Sets all 6 elements of the matrix.<br /> | ||
− | <br /> | + | <br /></translate> |
<source lang="lua"> | <source lang="lua"> | ||
Matrix:setElements(m11,m12,m21,m22,tx,ty) | Matrix:setElements(m11,m12,m21,m22,tx,ty) | ||
</source> | </source> | ||
=== Parameters === | === Parameters === | ||
− | '''m11''': (number, default = 1) | + | '''m11''': (number, default = 1) <translate></translate> <br/> |
− | '''m12''': (number, default = 0) | + | '''m12''': (number, default = 0) <translate></translate> <br/> |
− | '''m21''': (number, default = 0) | + | '''m21''': (number, default = 0) <translate></translate> <br/> |
− | '''m22''': (number, default = 1) | + | '''m22''': (number, default = 1) <translate></translate> <br/> |
− | '''tx''': (number, default = 0) | + | '''tx''': (number, default = 0) <translate></translate> <br/> |
− | '''ty''': (number, default = 0) | + | '''ty''': (number, default = 0) <translate></translate> <br/> |
Revision as of 13:34, 23 August 2018
Available since: Gideros 2011.6
Description
Sets all 6 elements of the matrix.
Matrix:setElements(m11,m12,m21,m22,tx,ty)
Parameters
m11: (number, default = 1)
m12: (number, default = 0)
m21: (number, default = 0)
m22: (number, default = 1)
tx: (number, default = 0)
ty: (number, default = 0)