GET TRANSLATE MATRIX: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| (6 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
[[:Category:Matrices|{{Up}}]] | |||
{{Command|syntax=GET_TRANSLATE_MATRIX <matrix array>, <dx>, <dy>, <dz> | {{Command|syntax=GET_TRANSLATE_MATRIX <matrix array>, <dx>, <dy>, <dz> | ||
|description= | |description=:Get the transformation matrix required to perform a 3D translation. | ||
|param1=<matrix array>|param1_desc={{ | |param1=<matrix array>|param1_desc={{parameter_variable_matrix}} | ||
|param2=<dx>|param2_desc={{dx}} | |param2=<dx>|param2_desc={{dx}} | ||
|param3=<dy>|param3_desc={{dy}} | |param3=<dy>|param3_desc={{dy}} | ||
| Line 9: | Line 11: | ||
===Example=== | ===Example=== | ||
: | :LOCAL MyTrans(12) | ||
:GET_TRANSLATE_MATRIX MyTrans, 1.5, 2, 10 | |||
<br> | |||
:This will get a matrix to translate by 1.5 in X, 2 in Y and 10 in Z. | |||
[[Category:Matrices]] | [[Category:Matrices]] | ||
Latest revision as of 18:10, 12 January 2011
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
- This will get a matrix to translate by 1.5 in X, 2 in Y and 10 in Z.