Mat4:scale

Scales the matrix.


m = Mat4:scale(scale)

Arguments

NameTypeDescription
scaleVec3 The 3D scale to apply.

Returns

NameTypeDescription
mMat4 The original matrix.

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

Arguments

NameTypeDefaultDescription
sxnumber The x component of the scale to apply.
synumbersx The y component of the scale to apply.
sznumbersx The z component of the scale to apply.

Returns

NameTypeDescription
mMat4 The original matrix.

See also