Difference between revisions of "Matrix:rotate"
From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>") |
|||
(7 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | ''' | + | '''Available since:''' Gideros 2016.06<br/> |
− | === | + | '''Class:''' [[Matrix]]<br/> |
− | + | ||
− | It takes | + | === Description === |
− | + | Combines the existing rotation with a provided rotation. | |
− | + | <syntaxhighlight lang="lua"> | |
− | + | Matrix:rotate(angle,xVector,yVector,zVector) | |
− | === | + | </syntaxhighlight> |
− | '''angle''': (number) | + | It takes an x,y,z vector plus an angle, and rotates the Matrix around the given vector by the specified angle. |
− | ''' | + | |
− | ''' | + | === Parameters === |
− | ''' | + | '''angle''': (number) angle of rotation in radians<br/> |
+ | '''xVector''': (number) x axis vector<br/> | ||
+ | '''yVector''': (number) y axis vector<br/> | ||
+ | '''zVector''': (number) z axis vector<br/> | ||
+ | |||
+ | {{Matrix}} |
Latest revision as of 14:30, 13 July 2023
Available since: Gideros 2016.06
Class: Matrix
Description
Combines the existing rotation with a provided rotation.
Matrix:rotate(angle,xVector,yVector,zVector)
It takes an x,y,z vector plus an angle, and rotates the Matrix around the given vector by the specified angle.
Parameters
angle: (number) angle of rotation in radians
xVector: (number) x axis vector
yVector: (number) y axis vector
zVector: (number) z axis vector
- 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