Difference between revisions of "Matrix:rotate"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(2 intermediate revisions by 2 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> ===
 
<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>
 
<source lang="lua">
 
Matrix:rotate(angle,xVector,yVector,zVector)
 
</source>
 
  
=== <translate>Parameters</translate> ===
+
=== Description ===
'''angle''': (number) <translate>angle of rotation in radians</translate> <br/>
+
Combines the existing rotation with a provided rotation.
'''xVector''': (number) <translate>x axis vector</translate> <br/>
+
<syntaxhighlight lang="lua">
'''yVector''': (number) <translate>y axis vector</translate> <br/>
+
Matrix:rotate(angle,xVector,yVector,zVector)
'''zVector''': (number) <translate>z axis vector</translate> <br/>
+
</syntaxhighlight>
 +
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}}
 
{{Matrix}}

Latest revision as of 14:30, 13 July 2023