GET SCALE MATRIX: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
[[:Category:Matrices|{{Up}}]] | |||
{{Command|syntax=GET_SCALE_MATRIX <matrix array>, <scale> | {{Command|syntax=GET_SCALE_MATRIX <matrix array>, <scale> | ||
|description= | |description=:Get the transformation matrix required to apply a uniform 3D scale. | ||
|param1=<matrix array>|param1_desc={{ | |param1=<matrix array>|param1_desc={{parameter_variable_matrix}} | ||
|param2=<scale>|param2_desc={{scale}} | |param2=<scale>|param2_desc={{scale}} | ||
}} | }} | ||
===Example=== | ===Example=== | ||
: | :GLOBAL MAT1(12) | ||
:GET_SCALE_MATRIX MAT1, 0.5 | |||
<br> | |||
This will get a matrix to reduce to half size. | |||
[[Category:Matrices]] | [[Category:Matrices]] | ||
Latest revision as of 18:11, 12 January 2011
Command
- GET_SCALE_MATRIX <matrix array>, <scale>
- Get the transformation matrix required to apply a uniform 3D scale.
Parameters
- <matrix array>
- Name of Matrix variable
- <scale>
- The scale factor to be applied. 1 would be no scale, 0.5 half scale, 1.5 increase by 50%.
Example
- GLOBAL MAT1(12)
- GET_SCALE_MATRIX MAT1, 0.5
This will get a matrix to reduce to half size.