NORMALIZE MATRIX: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
{{Command|syntax=NORMALIZE_MATRIX <matrix array> | {{Command|syntax=NORMALIZE_MATRIX <matrix array> | ||
|description=Normalize a transformation matrix | |description=:Normalize a transformation matrix | ||
|param1=<matrix array>|param1_desc={{parameter_variable_matrix}} | |param1=<matrix array>|param1_desc={{parameter_variable_matrix}} | ||
| Line 11: | Line 11: | ||
:LOCAL MyMatrix(12) | :LOCAL MyMatrix(12) | ||
:GET_IDENTITY_MATRIX MyMatrix | :GET_IDENTITY_MATRIX MyMatrix | ||
MyMatrix(1) = 3 | :MyMatrix(1) = 3 | ||
MyMatrix(6) = 2 | :MyMatrix(6) = 2 | ||
:NORMALIZE_MATRIX MyMatrix | :NORMALIZE_MATRIX MyMatrix | ||
[[Category:Matrices]] | [[Category:Matrices]] | ||
Latest revision as of 18:15, 12 January 2011
Command
- NORMALIZE_MATRIX <matrix array>
- Normalize a transformation matrix
Parameters
- <matrix array>
- Name of Matrix variable
Example
- LOCAL MyMatrix(12)
- GET_IDENTITY_MATRIX MyMatrix
- MyMatrix(1) = 3
- MyMatrix(6) = 2
- NORMALIZE_MATRIX MyMatrix