matrix

a matrix

local matrix = matrix.new() -- create matrix

matrix:set(1, 2, 420.69) -- set row 1, column 2 to a float value
matrix:set(2, 4, 1337.69) -- set row 2, column 4 to a float value

matrix:get(1, 2) -- get row 1, column 2
matrix:get(2, 4) -- get row 2, column 4

local table = matrix:table() -- get the matrix table

table[1][2] -- get row 1, column 2
table[2][4] -- get row 2, column 4

Last updated