Pool:mat4

Allocates a new mat4 from the Pool and returns it.

Returns an identity matrix.

m = Pool:mat4()

Arguments

None

Returns

NameTypeDescription
mmat4The new matrix.

m = Pool:mat4(n)

Arguments

NameTypeDescription
nmat4An existing matrix to copy the values from.

Returns

NameTypeDescription
mmat4The new matrix.

m = Pool:mat4(position, scale, rotation)

Arguments

NameTypeDefaultDescription
positionvec30, 0, 0The initial translation of the matrix.
scalevec31, 1, 1The initial scale of the matrix.
rotationquat0, 0, 0, 0The initial rotation of the matrix.

Returns

NameTypeDescription
mmat4The new matrix.

m = Pool:mat4(...)

Arguments

NameTypeDescription
...number16 numbers to use as the raw values of the matrix (column-major).

Returns

NameTypeDescription
mmat4The new matrix.

See also