Mat4:scale

Scales the matrix.

m = Mat4:scale(scale)

Arguments

NameTypeDescription
scaleVec3The 3D scale to apply.

Returns

NameTypeDescription
mMat4The original matrix.

m = Mat4:scale(sx, sy, sz)

Arguments

NameTypeDefaultDescription
sxnumberThe x component of the scale to apply.
synumbersxThe y component of the scale to apply.
sznumbersxThe z component of the scale to apply.

Returns

NameTypeDescription
mMat4The original matrix.

See also