Vec4:sub

Subtracts a vector or a number from the vector.

v = Vec4:sub(u)

Arguments

NameTypeDescription
uVec2The other vector.

Returns

NameTypeDescription
vVec2The original vector.

v = Vec4:sub(x)

Arguments

NameTypeDescription
xnumberA number to subtract from each component.

Returns

NameTypeDescription
vVec2The original vector.

See also