Mat4:setScale

Edit

Sets the scale of the matrix, without changing its position or rotation.



Arguments

NameTypeDefaultDescription
sxnumber1 The new x scale.
synumbersx The new y scale.
sznumbersx The new z scale.

Returns

NameTypeDescription
selfMat4 The modified input matrix.

Arguments

NameTypeDescription
scalevector The new scale.

Returns

NameTypeDescription
selfMat4 The modified input matrix.

See also