Difference between revisions of "Matrix:rotate"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2016.06<br/> === Description === Combine existing rotation with provided. It takes a x,y,z vector and an angle, and rotate the matrix...") |
|||
Line 5: | Line 5: | ||
It takes a x,y,z vector and an angle, and rotate the matrix around the given vector by the specified angle | It takes a x,y,z vector and an angle, and rotate the matrix around the given vector by the specified angle | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | Matrix:rotate(angle,x vector,y vector,z vector) | |
</source> | </source> | ||
− | '''angle | + | '''angle''': (number) angle of rotation in radians ''''''<br/> |
− | '''x vector | + | '''x vector''': (number) x axis vector ''''''<br/> |
− | '''y vector | + | '''y vector''': (number) y axis vector ''''''<br/> |
− | '''z vector | + | '''z vector''': (number) z axis vector ''''''<br/> |
Revision as of 10:16, 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)
'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 '