Difference between revisions of "Matrix:rotate"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''<translate>Available since</translate>:''' Gideros 2016.06<br/> | '''<translate>Available since</translate>:''' Gideros 2016.06<br/> | ||
+ | '''<translate>Class</translate>:''' [[Special:MyLanguage/Matrix|Matrix]]<br/> | ||
=== <translate>Description</translate> === | === <translate>Description</translate> === | ||
<translate>Combine existing rotation with provided. | <translate>Combine existing rotation with provided. |
Revision as of 09:27, 24 August 2018
Available since: Gideros 2016.06
Class: Matrix
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