Difference between revisions of "INVERT MATRIX"

From Macros Wiki
Jump to: navigation, search
Line 1: Line 1:
 
{{Command|syntax=INVERT_MATRIX <matrix array>
 
{{Command|syntax=INVERT_MATRIX <matrix array>
|description=*DESCRPTION*
+
|description=Set an array variable to the transformation matrix required to invert the current transformation stored in that array.
  
 
|param1=<matrix array>|param1_desc={{matrix array}}
 
|param1=<matrix array>|param1_desc={{matrix array}}
Line 6: Line 6:
  
 
===Example===
 
===Example===
:- INVERT_MATRIX
+
:GLOBAL MAT1(12)
 +
:GET_SCALE_MATRIX MAT1, 0.5
 +
:INVERT_MATRIX MAT1
  
 
[[Category:Matrices]]
 
[[Category:Matrices]]

Revision as of 17:53, 26 July 2010

Command

INVERT_MATRIX <matrix array>


Set an array variable to the transformation matrix required to invert the current transformation stored in that array.

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_SCALE_MATRIX MAT1, 0.5
INVERT_MATRIX MAT1