GET TRANSLATE MATRIX: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
MikeO (talk | contribs)
No edit summary
ConnerO (talk | contribs)
No edit summary
Line 1: Line 1:
{{Command|syntax=GET_TRANSLATE_MATRIX <matrix array>, <dx>, <dy>, <dz>
{{Command|syntax=GET_TRANSLATE_MATRIX <matrix array>, <dx>, <dy>, <dz>
|description=Set an array variable to the transformation matrix required to perform a 3D translation.
|description=:Set an array variable to the transformation matrix required to perform a 3D translation.


|param1=<matrix array>|param1_desc={{matrix array}}
|param1=<matrix array>|param1_desc={{matrix array}}
Line 9: Line 9:


===Example===
===Example===
:-GET_TRANSLATE_MATRIX  
:GET_TRANSLATE_MATRIX  


[[Category:Matrices]]
[[Category:Matrices]]

Revision as of 22:48, 26 July 2010

Command

GET_TRANSLATE_MATRIX <matrix array>, <dx>, <dy>, <dz>


Set an array variable to the transformation matrix required to perform a 3D translation.

Parameters

<matrix array>
A transformation matrix contains 12 values. These are stored in an array variable that must be defined to hold at least 12 values. If the array variable is defined with a size of more than 12, the first 12 values are used for the transformation matrix.
<dx>
The distance in the X axis direction.
<dy>
The distance in the Y axis direction.
<dz>
The distance in the Z axis direction.

Example

GET_TRANSLATE_MATRIX