Difference between revisions of "Matrix:rotate"

From GiderosMobile
Line 7: Line 7:
 
  Matrix:rotate(angle,x vector,y vector,z vector)
 
  Matrix:rotate(angle,x vector,y vector,z vector)
 
</source>
 
</source>
'''angle''': (number) angle of rotation in radians ''''''<br/>
+
=== Parameters ===
'''x vector''': (number) x axis vector ''''''<br/>
+
'''angle''': (number) angle of rotation in radians <br/>
'''y vector''': (number) y axis vector ''''''<br/>
+
'''x vector''': (number) x axis vector <br/>
'''z vector''': (number) z axis vector ''''''<br/>
+
'''y vector''': (number) y axis vector <br/>
 +
'''z vector''': (number) z axis vector <br/>

Revision as of 10:40, 23 August 2018

Available since: Gideros 2016.06

Description

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

 Matrix:rotate(angle,x vector,y vector,z vector)

Parameters

angle: (number) angle of rotation in radians
x vector: (number) x axis vector
y vector: (number) y axis vector
z vector: (number) z axis vector