List of all possible functions to manipulate vectors. Created by Global.Vector. Type | Name | Description ------ | -------------- | ------------------------------ number | `x` or `1` | The X component of the vector. number | `y` or `2` | The Y component of the vector. number | `z` or `3` | The Z component of the vector. Metamethod | Second Operand | Description ---------- | -------------- | ----------- `__add` | Vector | Returns new Vector with the result of addition. `__div` | number or Vector | Returns new Vector with the result of division. `__eq` | any | Compares 2 operands, if they both are Vector, compares each individual component. `__index` | number or string | Gets the component of the Vector. Returns a number. `__mul` | number or Vector| Returns new Vector with the result of multiplication. `__newindex` | number or string | Sets the component of the Vector. Accepts number and string. `__sub` | Vector | Returns new Vector with the result of subtraction. `__tostring` | | Returns `x y z`. `__unm` | | Returns new Vector with the result of negation. Indexing by named component. local v = Vector( 1, 2, 3 ) print( v.x, v.y, v.z ) 1 2 3 Indexing by number (most efficient!). local v = Vector( 1, 2, 3 ) print( v[1], v[2], v[3] ) 1 2 3