Difference between revisions of "Matrix:rotate"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2016.06<br/>
'''<translate>Available since</translate>:''' Gideros 2016.06<br/>
+
'''Class:''' [[Matrix]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Matrix|Matrix]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>Combine existing rotation with provided.
+
Combines the existing rotation with a provided rotation.
It takes a x,y,z vector and an angle, and rotate the matrix around the given vector by the specified angle</translate>
+
<syntaxhighlight lang="lua">
<source lang="lua">
+
Matrix:rotate(angle,xVector,yVector,zVector)
Matrix:rotate(angle,x vector,y vector,z vector)
+
</syntaxhighlight>
</source>
+
It takes an x,y,z vector plus an angle, and rotates the Matrix around the given vector by the specified angle.
=== <translate>Parameters</translate> ===
+
 
'''angle''': (number) <translate>angle of rotation in radians</translate> <br/>
+
=== Parameters ===
'''xVector''': (number) <translate>x axis vector</translate> <br/>
+
'''angle''': (number) angle of rotation in radians<br/>
'''yVector''': (number) <translate>y axis vector</translate> <br/>
+
'''xVector''': (number) x axis vector<br/>
'''zVector''': (number) <translate>z axis vector</translate> <br/>
+
'''yVector''': (number) y axis vector<br/>
 +
'''zVector''': (number) z axis vector<br/>
  
 
{{Matrix}}
 
{{Matrix}}

Latest revision as of 15:30, 13 July 2023