Difference between revisions of "Matrix:rotate"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(6 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>Class</translate>:''' [[Special:MyLanguage/Matrix|Matrix]]<br/>
+
'''Class:''' [[Matrix]]<br/>
=== <translate>Description</translate> ===
+
 
<translate>Combine existing rotation with provided.
+
=== Description ===
It takes a x,y,z vector and an angle, and rotate the matrix around the given vector by the specified angle</translate>
+
Combines the existing rotation with a provided rotation.
<source lang="lua">
+
<syntaxhighlight lang="lua">
Matrix:rotate(angle,x vector,y vector,z vector)
+
Matrix:rotate(angle,xVector,yVector,zVector)
</source>
+
</syntaxhighlight>
=== <translate>Parameters</translate> ===
+
It takes an x,y,z vector plus an angle, and rotates the Matrix around the given vector by the specified angle.
'''angle''': (number) <translate>angle of rotation in radians</translate> <br/>
+
 
'''x vector''': (number) <translate>x axis vector</translate> <br/>
+
=== Parameters ===
'''y vector''': (number) <translate>y axis vector</translate> <br/>
+
'''angle''': (number) angle of rotation in radians<br/>
'''z vector''': (number) <translate>z axis vector</translate> <br/>
+
'''xVector''': (number) x axis vector<br/>
 +
'''yVector''': (number) y axis vector<br/>
 +
'''zVector''': (number) z axis vector<br/>
 +
 
 +
{{Matrix}}

Latest revision as of 15:30, 13 July 2023