GET TRANSLATE MATRIX: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
Mikeo (talk | contribs)
No edit summary
Mikeo (talk | contribs)
No edit summary
Line 11: Line 11:


===Example===
===Example===
:LOCAL MyTrans[12]
:LOCAL MyTrans(12)
:GET_TRANSLATE_MATRIX MyTrans, 1.5, 2, 10
:GET_TRANSLATE_MATRIX MyTrans, 1.5, 2, 10


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

Revision as of 18:08, 12 January 2011

Up

Command

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


Get the transformation matrix required to perform a 3D translation.

Parameters

<matrix array>
Name of Matrix variable
<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

LOCAL MyTrans(12)
GET_TRANSLATE_MATRIX MyTrans, 1.5, 2, 10