Vector3:operator ‑(vec2)
Version added: before 9.5
Arguments:
Name | Type | Description | Default | Ver |
vec2 | Vector3 | A vector to subtract from the first one | < 9.5 |
Return value:
Vector3 the difference of two vectors
Subtracts one vector from another and returns the result as a new vector. This operator makes it possible to subtract vectors as if they were regular numbers. Example: c = a - b.
<< Back to Vector3