LM_Vector2:operator‑(vec2)

Version added: before 9.5

Subtracts one vector from another and returns the result as a new vector

ArgumentTypeDescriptionDefaultVersion added
vec2LM_Vector2A vector to subtract from the first onebefore 9.5

Return type (LM_Vector2): 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.