{{newin|[[11.0]]|110|type=enum}}
The layout of matrix elements (row-major or column-major).

== Constants ==
;row: The matrix is row-major:
<source lang="lua">
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.
}
</source>
;column: The matrix is column-major:
<source lang="lua">
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.
}
</source>

== See Also ==
* [[parent::Transform]]
* [[parent::Shader]]
* [[Transform:setMatrix]]
* [[Shader:send]]
[[Category:Enums]]
{{#set:Description=The layout of matrix elements (row-major or column-major).}}
== Other Languages ==
{{i18n|MatrixLayout}}