Vec3:mul
Multiplies the vector by a vector or a number.
v = Vec3:mul(u)
Arguments
Name | Type | Description |
u | Vec3 | The other vector to multiply the components by. |
Returns
Name | Type | Description |
v | Vec3 | The original vector. |
v = Vec3:mul(x)
Arguments
Name | Type | Description |
x | number | The number to multiply each component by. |
Returns
Name | Type | Description |
v | Vec3 | The original vector. |
See also
Vec3:add
Vec3:sub
Vec3:div
Vec3