GET IDENTITY MATRIX: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
ConnerO (talk | contribs)
No edit summary
MikeO (talk | contribs)
No edit summary
Line 1: Line 1:
{{Command|syntax= GET_IDENTITY_MATRIX <matrix array>
{{Command|syntax= GET_IDENTITY_MATRIX <matrix array>
|description=*DESCRPTION*
|description=Set an array variable to the identity matrix.


|param1=<matrix array>|param1_desc= {{matrix array}}
|param1=<matrix array>|param1_desc= {{matrix array}}
Line 6: Line 6:


===Example===
===Example===
:- GET_IDENTITY_MATRIX
:GLOBAL MAT1(12)
:GET_IDENTITY_MATRIX MAT1


[[Category:Matrices]]
[[Category:Matrices]]

Revision as of 22:41, 26 July 2010

Command

GET_IDENTITY_MATRIX <matrix array>


Set an array variable to the identity matrix.

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.

Example

GLOBAL MAT1(12)
GET_IDENTITY_MATRIX MAT1