Vec3:mul

Multiplies the vector by a vector or a number.

v = Vec3:mul(u)

Arguments

NameTypeDescription
uVec3The other vector to multiply the components by.

Returns

NameTypeDescription
vVec3The original vector.

v = Vec3:mul(x)

Arguments

NameTypeDescription
xnumberThe number to multiply each component by.

Returns

NameTypeDescription
vVec3The original vector.

See also