GET ROTATE MATRIX: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Command|syntax=GET_ROTATE_MATRIX <matrix array>, <vx>, <vy>, <vz>, <angle> | {{Command|syntax=GET_ROTATE_MATRIX <matrix array>, <vx>, <vy>, <vz>, <angle> | ||
|description= | |description=: remember colons, i fixed all youve missed so far. | ||
|param1=<matrix array>|param1_desc={{matrix array}} | |param1=<matrix array>|param1_desc={{matrix array}} |
Revision as of 22:42, 26 July 2010
Command
- GET_ROTATE_MATRIX <matrix array>, <vx>, <vy>, <vz>, <angle>
- remember colons, i fixed all youve missed so far.
Parameters
- <matrix array>
- A transformation matrix contains 12 values. These are stored in an array variable that must be defined to hold at least 12 values. If the array variable is defined with a size of more than 12, the first 12 values are used for the transformation matrix.
- <vx>
- the X component of a vector.
- <vy>
- the Y component of a vector.
- <vz>
- the Y component of a vector.
- <angle>
- angle value, either degrees or radians. Positive angles indicate a CCW direction, negative for CW.
Use the DEGREES or RADIANS commands to switch between the two angle modes.
Example
- - GET_ROTATE_MATRIX