Difference between revisions of "MatrixLayout"
(Created page) |
m |
||
Line 5: | Line 5: | ||
;row: The matrix is row-major: | ;row: The matrix is row-major: | ||
<source lang="lua"> | <source lang="lua"> | ||
− | { | + | matrix = { |
{a, b, c, d}, -- row 1 | {a, b, c, d}, -- row 1 | ||
{e, f, g, h}, -- row 2 | {e, f, g, h}, -- row 2 | ||
Line 11: | Line 11: | ||
} | } | ||
-- or | -- or | ||
− | { | + | matrix = { |
a, b, c, d, -- row 1 | a, b, c, d, -- row 1 | ||
e, f, g, h, -- row 2 | e, f, g, h, -- row 2 | ||
Line 19: | Line 19: | ||
;column: The matrix is column-major: | ;column: The matrix is column-major: | ||
<source lang="lua"> | <source lang="lua"> | ||
− | { | + | matrix = { |
{a, b, c, d}, -- column 1 | {a, b, c, d}, -- column 1 | ||
{e, f, g, h}, -- column 2 | {e, f, g, h}, -- column 2 | ||
Line 25: | Line 25: | ||
} | } | ||
-- or | -- or | ||
− | { | + | matrix = { |
a, b, c, d, -- column 1 | a, b, c, d, -- column 1 | ||
e, f, g, h, -- column 2 | e, f, g, h, -- column 2 |
Revision as of 16:44, 24 March 2018
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:
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
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info