SCALE MATRIX: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 13: | Line 13: | ||
:SCALE_MATRIX Matrix1, 4 | :SCALE_MATRIX Matrix1, 4 | ||
<br> | <br> | ||
This will get a matrix to translate by 3 in X, 1 in Y and -2 in Z. Then scale to 4 times size. | :This will get a matrix to translate by 3 in X, 1 in Y and -2 in Z. Then scale to 4 times size. | ||
[[Category:Matrices]] | [[Category:Matrices]] |
Latest revision as of 18:26, 12 January 2011
Command
- SCALE_MATRIX <matrix array>
- Modify a matrix by applying a uniform scale factor.
Parameters
- <matrix array>
- Name of Matrix variable
Example
- GLOBAL Matrix1(12)
- TRANSLATE_MATRIX Matrix1, 3, 1, -2
- SCALE_MATRIX Matrix1, 4
- This will get a matrix to translate by 3 in X, 1 in Y and -2 in Z. Then scale to 4 times size.