Vec4:mul

Multiplies the vector by a vector or a number.


v = Vec4:mul(u)

Arguments

NameTypeDescription
uVec4 The other vector to multiply the components by.

Returns

NameTypeDescription
vVec4 The original vector.

v = Vec4:mul(x, y, z, w)

Arguments

NameTypeDefaultDescription
xnumber A value to multiply x component by.
ynumberx A value to multiply y component by.
znumberx A value to multiply z component by.
wnumberx A value to multiply w component by.

Returns

NameTypeDescription
vVec4 The original vector.

See also