INVERT MATRIX: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
MikeO (talk | contribs)
No edit summary
Mikeo (talk | contribs)
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
[[:Category:Matrices|{{Up}}]]
{{Command|syntax=INVERT_MATRIX <matrix array>
{{Command|syntax=INVERT_MATRIX <matrix array>
|description=Set an array variable to the transformation matrix required to invert the current transformation stored in that array.
|description=:Get a transformation matrix that is the invert of a current transformation.


|param1=<matrix array>|param1_desc={{matrix array}}
|param1=<matrix array>|param1_desc={{parameter_variable_matrix}}
}}
}}


Line 10: Line 12:
:INVERT_MATRIX MAT1
:INVERT_MATRIX MAT1


:This will get a matrix that scales to half size. Then get the invert of that matrix.
[[Category:Matrices]]
[[Category:Matrices]]

Latest revision as of 18:13, 12 January 2011

Up

Command

INVERT_MATRIX <matrix array>


Get a transformation matrix that is the invert of a current transformation.

Parameters

<matrix array>
Name of Matrix variable

Example

GLOBAL MAT1(12)
GET_SCALE_MATRIX MAT1, 0.5
INVERT_MATRIX MAT1
This will get a matrix that scales to half size. Then get the invert of that matrix.