Sets the definition of the vector by specifying an array containing the x and y coordinates.
"vector2D_var" is a variable referencing a Vector2D object.
|
"vector2D_var" is a variable referencing a Vector2D object.
|
Type | Description |
boolean | Returns true if successful |
Name | Type | Description |
coordinates | double[] | An array that specifies the values for the x and y coordinates of the vector. |