Constructor
# new Vec2(x, y)
Parameters:
Name | Type | Description |
---|---|---|
x |
number
|
The x value |
y |
number
|
The y value |
- Implements:
Members
Methods
# add(addVector) → {void}
add The coordinate of the param vector to the coordinates of this vector
Parameters:
Name | Type | Description |
---|---|---|
addVector |
Vec2
|
The add vector. |
void