# Difference between revisions of "INVERT MATRIX"

From Macros Wiki

(One intermediate revision 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=: | + | |description=:Get a transformation matrix that is the invert of a current transformation. |

− | |param1=<matrix array>|param1_desc={{ | + | |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 13:13, 12 January 2011

### 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.