Matrix:rotate: Difference between revisions

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