SCALE MATRIX

From Macros Wiki
Jump to: navigation, search

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.