Difference between revisions of "Matrix:rotate"
From GiderosMobile
m (→Parameters) |
m (→Description) |
||
Line 7: | Line 7: | ||
It takes a x,y,z vector and an angle, and rotate the matrix around the given vector by the specified angle</translate> | It takes a x,y,z vector and an angle, and rotate the matrix around the given vector by the specified angle</translate> | ||
<source lang="lua"> | <source lang="lua"> | ||
− | Matrix:rotate(angle, | + | Matrix:rotate(angle,xVector,yVector,zVector) |
</source> | </source> | ||
+ | |||
=== <translate>Parameters</translate> === | === <translate>Parameters</translate> === | ||
'''angle''': (number) <translate>angle of rotation in radians</translate> <br/> | '''angle''': (number) <translate>angle of rotation in radians</translate> <br/> |
Revision as of 05:38, 31 December 2020
Available since: Gideros 2016.06
Class: Matrix
Description
Combine existing rotation with provided. It takes a x,y,z vector and an angle, and rotate the matrix around the given vector by the specified angle
Matrix:rotate(angle,xVector,yVector,zVector)
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