Mat4:translate

Translates the matrix.

m = Mat4:translate(v)

Arguments

NameTypeDescription
vVec3The translation vector.

Returns

NameTypeDescription
mMat4The original matrix.

m = Mat4:translate(x, y, z)

Arguments

NameTypeDescription
xnumberThe x component of the translation.
ynumberThe y component of the translation.
znumberThe z component of the translation.

Returns

NameTypeDescription
mMat4The original matrix.

See also