Difference between revisions of "Matrix:rotate"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Combines the existing rotation with a provided rotation.
 
Combines the existing rotation with a provided rotation.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
Matrix:rotate(angle,xVector,yVector,zVector)
 
Matrix:rotate(angle,xVector,yVector,zVector)
</source>
+
</syntaxhighlight>
 
It takes an x,y,z vector plus an angle, and rotates the Matrix around the given vector by the specified angle.
 
It takes an x,y,z vector plus an angle, and rotates the Matrix around the given vector by the specified angle.
  

Latest revision as of 14:30, 13 July 2023