MatrixLayout

Available since LÖVE 0.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:
{
    {a, b, c, d}, -- row 1
    {e, f, g, h}, -- row 2
    -- etc.
}
-- or
{
    a, b, c, d, -- row 1
    e, f, g, h, -- row 2
    -- etc.
}
column
The matrix is column-major:
{
    {a, b, c, d}, -- column 1
    {e, f, g, h}, -- column 2
    -- etc.
}
-- or
{
    a, b, c, d, -- column 1
    e, f, g, h, -- column 2
    -- etc.
}

See Also

Other Languages