Vec3:sub

Subtracts a vector or a number from the vector.


v = Vec3:sub(u)

Arguments

NameTypeDescription
uVec3 The other vector.

Returns

NameTypeDescription
vVec3 The original vector.

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

Arguments

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

Returns

NameTypeDescription
vVec3 The original vector.

See also