SCALE MATRIX: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
New page: {{Command|syntax=SCALE_MATRIX <matrix array> |description=*DESCRPTION* |param1=<matrix array>|param1_desc= }} ===Example=== :- SCALE_MATRIX Category:Matrices |
No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[:Category:Matrices|{{Up}}]] | |||
{{Command|syntax=SCALE_MATRIX <matrix array> | {{Command|syntax=SCALE_MATRIX <matrix array> | ||
|description= | |description=:Modify a matrix by applying a uniform scale factor. | ||
|param1=<matrix array>|param1_desc={{parameter_variable_matrix}} | |||
}} | }} | ||
===Example=== | ===Example=== | ||
:- SCALE_MATRIX | :GLOBAL Matrix1(12) | ||
<br> | |||
:TRANSLATE_MATRIX Matrix1, 3, 1, -2 | |||
:SCALE_MATRIX Matrix1, 4 | |||
<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. | |||
[[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.