vec3:__mul

Multiplies a vector by another vector or a vector by a number. Returns a new vector that contains the multiplied values.

out = vec3:__mul(v, u)

Arguments

NameTypeDescription
vvec3The first vector.
uvec3The second vector.

Returns

NameTypeDescription
outvec3The result.

out = vec3:__mul(v, x)

Arguments

NameTypeDescription
vvec3The first vector.
xnumberA number to scale each value in the vector by.

Returns

NameTypeDescription
outvec3The result.

See also