Difference between revisions of "Matrix.new"
From GiderosMobile
(removed double any & Returns + language stuff) |
|||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | + | '''Available since:''' Gideros 2011.6<br/> | |
− | ''' | + | '''Class:''' [[Matrix]]<br/> |
− | ''' | + | |
− | === | + | === Description === |
− | + | Creates a new Matrix object with the specified parameters. | |
− | Creates a new Matrix object with the specified parameters. | ||
− | |||
<source lang="lua"> | <source lang="lua"> | ||
− | + | (any) = Matrix.new(m11,m12,m21,m22,tx,ty) | |
</source> | </source> | ||
− | === | + | |
− | '''m11''': (number, default = 1) | + | === Parameters === |
− | '''m12''': (number, default = 0) | + | '''m11''': (number, default = 1) <br/> |
− | '''m21''': (number, default = 0) | + | '''m12''': (number, default = 0) <br/> |
− | '''m22''': (number, default = 1) | + | '''m21''': (number, default = 0) <br/> |
− | '''tx''': (number, default = 0) | + | '''m22''': (number, default = 1) <br/> |
− | '''ty''': (number, default = 0) | + | '''tx''': (number, default = 0) <br/> |
− | === | + | '''ty''': (number, default = 0) <br/> |
− | ''' | + | |
− | + | === Return values === | |
+ | '''Returns''' (any) new Matrix object<br/> | ||
{{Matrix}} | {{Matrix}} |
Revision as of 22:35, 17 March 2022
Available since: Gideros 2011.6
Class: Matrix
Description
Creates a new Matrix object with the specified parameters.
(any) = Matrix.new(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)
Return values
Returns (any) new Matrix object
- Matrix
- Matrix.fromSRT
- Matrix.new
- Matrix:duplicate
- Matrix:getAnchorPosition
- Matrix:getElements
- Matrix:getM11
- Matrix:getM12
- Matrix:getM21
- Matrix:getM22
- Matrix:getMatrix
- Matrix:getPosition
- Matrix:getRotationX
- Matrix:getRotationY
- Matrix:getRotationZ
- Matrix:getScale
- Matrix:getScaleX
- Matrix:getScaleY
- Matrix:getScaleZ
- Matrix:getTx
- Matrix:getTy
- Matrix:getTz
- Matrix:getX
- Matrix:getY
- Matrix:getZ
- Matrix:invert
- Matrix:multiply
- Matrix:orthographicProjection
- Matrix:perspectiveProjection
- Matrix:rotate
- Matrix:scale
- Matrix:setAnchorPosition
- Matrix:setElements
- Matrix:setM11
- Matrix:setM12
- Matrix:setM21
- Matrix:setM22
- Matrix:setMatrix
- Matrix:setPosition
- Matrix:setRotationX
- Matrix:setRotationY
- Matrix:setRotationZ
- Matrix:setScale
- Matrix:setScaleX
- Matrix:setScaleY
- Matrix:setScaleZ
- Matrix:setTx
- Matrix:setTy
- Matrix:setTz
- Matrix:setX
- Matrix:setY
- Matrix:setZ
- Matrix:transformPoint
- Matrix:translate