Difference between revisions of "MatrixLayout"

m
m (0.110 -> 11.0)
 
Line 1: Line 1:
{{newin|[[0.11.0]]|110|type=enum}}
+
{{newin|[[11.0]]|110|type=enum}}
 
The layout of matrix elements (row-major or column-major).
 
The layout of matrix elements (row-major or column-major).
  

Latest revision as of 16:36, 4 April 2018

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

The layout of matrix elements (row-major or column-major).

Constants

row
The matrix is row-major:
matrix = {
    {a, b, c, d}, -- row 1
    {e, f, g, h}, -- row 2
    -- etc.
}
-- or
matrix = {
    a, b, c, d, -- row 1
    e, f, g, h, -- row 2
    -- etc.
}
column
The matrix is column-major:
matrix = {
    {a, b, c, d}, -- column 1
    {e, f, g, h}, -- column 2
    -- etc.
}
-- or
matrix = {
    a, b, c, d, -- column 1
    e, f, g, h, -- column 2
    -- etc.
}

See Also

Other Languages