# Difference between revisions of "INVERT MATRIX"

From Macros Wiki

Line 2: | Line 2: | ||

{{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 12: | 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 14: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.