Vec2.+
static Vec2 +(Vec2 a, Vec2 b)
Adds matching components together. Commutative.
| Vec2 a | Any vector. |
| Vec2 b | Any vector. |
| RETURNS: Vec2 | A new vector from the added components. |
static Vec2 +(Vec2 a, float b)
Adds the float to each component of the vector.
| Vec2 a | Any vector. |
| float b | Any scalar. |
| RETURNS: Vec2 | A new vector from the added components. |
Found an issue with these docs, or have some additional questions? Create an Issue on Github!