SCALE MATRIX: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
ConnerO (talk | contribs)
No edit summary
Mikeo (talk | contribs)
No edit summary
 
(2 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=*DESCRPTION*
|description=:Modify a matrix by applying a uniform scale factor.
 
|param1=<matrix array>|param1_desc={{matrix array}}


|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

Up

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.