Difference between revisions of "Matrix:rotate"

From GiderosMobile
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>
 
 
<source lang="lua">
 
<source lang="lua">
Matrix:rotate(angle,xVector,yVector,zVector)
+
Matrix:rotate(angle,xVector,yVector,zVector)
 
</source>
 
</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> ===
+
=== Parameters ===
'''angle''': (number) <translate>angle of rotation in radians</translate> <br/>
+
'''angle''': (number) angle of rotation in radians<br/>
'''xVector''': (number) <translate>x axis vector</translate> <br/>
+
'''xVector''': (number) x axis vector<br/>
'''yVector''': (number) <translate>y axis vector</translate> <br/>
+
'''yVector''': (number) y axis vector<br/>
'''zVector''': (number) <translate>z axis vector</translate> <br/>
+
'''zVector''': (number) z axis vector<br/>
  
 
{{Matrix}}
 
{{Matrix}}

Revision as of 23:32, 17 March 2022