Difference between revisions of "Transform:getMatrix"

(Created page)
 
m (Arguments: Add fullstop.)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{newin|[[0.11.0]]|110|type=function}}
+
{{newin|[[11.0]]|110|type=function}}
 
Gets the internal 4x4 transformation matrix stored by this Transform. The matrix is returned in [[MatrixLayout|row-major]] order.
 
Gets the internal 4x4 transformation matrix stored by this Transform. The matrix is returned in [[MatrixLayout|row-major]] order.
  
Line 8: Line 8:
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
None
+
None.
 +
 
 
=== Returns ===
 
=== Returns ===
 
{{param|number|e1_1|The first column of the first row of the matrix.}}
 
{{param|number|e1_1|The first column of the first row of the matrix.}}
Line 19: Line 20:
 
* [[Transform:setMatrix]]
 
* [[Transform:setMatrix]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Gets the internal 4x4 transformation matrix stored by this Transform.}}
+
{{#set:Description=Gets the internal transformation matrix stored by this Transform.}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|Transform:getMatrix}}
 
{{i18n|Transform:getMatrix}}

Latest revision as of 04:05, 7 December 2019

Available since LÖVE 11.0
This function is not supported in earlier versions.

Gets the internal 4x4 transformation matrix stored by this Transform. The matrix is returned in row-major order.

Function

Synopsis

e1_1, e1_2, ..., e4_4 = Transform:getMatrix( )

Arguments

None.

Returns

number e1_1
The first column of the first row of the matrix.
number e1_2
The second column of the first row of the matrix.
number ...
Additional matrix elements.
number e4_4
The fourth column of the fourth row of the matrix.

See Also

Other Languages