Represents a 2-dimensional vector.
Name | Description |
---|---|
Vector2
|
Constructs a new 2-dimensional vector. |
Constructs a new 2-dimensional vector.
Name | Type | Description |
---|---|---|
x |
Number |
optional
The value for the x coordinate. Defaults to0.0 .
|
y |
Number |
optional
The value for the y coordinate. Defaults to0.0 .
|