Vec3:add

Edit

Adds a vector or a number to the vector.



Arguments

NameTypeDescription
uVec3 The other vector.

Returns

NameTypeDescription
selfVec3 The modified vector.

Arguments

NameTypeDefaultDescription
xnumber A value to add to x component.
ynumberx A value to add to y component.
znumberx A value to add to z component.

Returns

NameTypeDescription
selfVec3 The modified vector.

See also