Vec3:mul

Multiplies the vector by a vector or a number.


v = Vec3:mul(u)

Arguments

NameTypeDescription
uVec3 The other vector to multiply the components by.

Returns

NameTypeDescription
vVec3 The original vector.

v = Vec3:mul(x, y, z)

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.

Returns

NameTypeDescription
vVec3 The original vector.

See also