matrixTranspose: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)\]\]" to "{{GameCategory|arma3|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma3 |Game= | | arma3 |Game= | ||
Line 14: | Line 13: | ||
|gr1= Math |GROUP1= | |gr1= Math |GROUP1= | ||
|gr2= Math - Vectors |GROUP2= | |gr2= Math - Vectors |GROUP2= | ||
| Returns [https://en.wikipedia.org/wiki/Transpose transposed] version of the given matrix. The matrix is an [[Array]] of rows. Each row is an [[Array]] of corresponding column values for the row. The minimum number of rows is 1. | | Returns [https://en.wikipedia.org/wiki/Transpose transposed] version of the given matrix. The matrix is an [[Array]] of rows. Each row is an [[Array]] of corresponding column values for the row. The minimum number of rows is 1. | ||
Line 20: | Line 18: | ||
[[Image:matrixTranspose.jpg|500px]] | [[Image:matrixTranspose.jpg|500px]] | ||
<br><br> |Description= | <br><br> |Description= | ||
| [[matrixTranspose]] matrix |Syntax= | | [[matrixTranspose]] matrix |Syntax= | ||
Line 27: | Line 24: | ||
| [[Array]] - transposed matrix |Return Value= | | [[Array]] - transposed matrix |Return Value= | ||
|x1= <code>[[matrixTranspose]] | |x1= <code>[[matrixTranspose]] | ||
Line 61: | Line 57: | ||
[1,2,3] | [1,2,3] | ||
] */</code> |EXAMPLE3= | ] */</code> |EXAMPLE3= | ||
| [[matrixMultiply]], [[vectorAdd]], [[vectorMagnitude]], [[vectorNormalized]], [[vectorMultiply]], [[vectorDotProduct]], [[vectorCrossProduct]], [[vectorDistance]], [[vectorLinearConversion]], [[vectorCos]], [[vectorFromTo]], [[vectorModelToWorld]], [[vectorWorldToModel]] |See Also= | | [[matrixMultiply]], [[vectorAdd]], [[vectorMagnitude]], [[vectorNormalized]], [[vectorMultiply]], [[vectorDotProduct]], [[vectorCrossProduct]], [[vectorDistance]], [[vectorLinearConversion]], [[vectorCos]], [[vectorFromTo]], [[vectorModelToWorld]], [[vectorWorldToModel]] |See Also= |
Revision as of 01:52, 17 January 2021
Description
- Description:
- Returns transposed version of the given matrix. The matrix is an Array of rows. Each row is an Array of corresponding column values for the row. The minimum number of rows is 1.
- Groups:
- MathMath - Vectors
Syntax
- Syntax:
- matrixTranspose matrix
- Parameters:
- matrix: Array - given matrix
- Return Value:
- Array - transposed matrix
Examples
- Example 1:
matrixTranspose [ [1,2,3], [3,1,2], [2,3,1] ]; /* returns [ [1,3,2], [2,1,3], [3,2,1] ] */
- Example 2:
matrixTranspose [ [1,2,3] ]; /* returns [ [1], [2], [3] ] */
- Example 3:
matrixTranspose [ [1], [2], [3] ]; /* returns [ [1,2,3] ] */
Additional Information
- See also:
- matrixMultiplyvectorAddvectorMagnitudevectorNormalizedvectorMultiplyvectorDotProductvectorCrossProductvectorDistancevectorLinearConversionvectorCosvectorFromTovectorModelToWorldvectorWorldToModel
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note