Creates a 2D vector object.
This is a static method. |
This is a static method. |
| Type | Description |
| Vector2D | Returns the new Vector2D object or null if the creation failed. |
| Name | Type | Description |
| x | double | The x coordinate of the vector. This is an optional argument whose default value is 0.0. |
| y | double | The y coordinate of the vector. This is an optional argument whose default value is 0.0. |