This class represents a Node of the graph.
More...
This class represents a Node of the graph.
- Author
- Kurt Leimer
Definition at line 8 of file Node.java.
| Node.Node |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
Creates a Node with the specified coordinates.
- Parameters
-
| x | The x-coordinate of the Node. |
| y | The y-coordinate of the Node. |
Definition at line 17 of file Node.java.
| double Node.distance |
( |
Node |
other) | |
|
Returns the distance of the Node to the specified other Node.
- Parameters
-
| other | The other Node whose distance is calculated. |
- Returns
- the distance of the Node to the specified other Node.
Definition at line 69 of file Node.java.
Returns the x-coordinate of the Node.
- Returns
- the x-coordinate of the Node.
Definition at line 26 of file Node.java.
Returns the x-coordinate of the Node as an int.
- Returns
- the x-coordinate of the Node as an int.
Definition at line 34 of file Node.java.
Returns the y-coordinate of the Node.
- Returns
- the y-coordinate of the Node.
Definition at line 42 of file Node.java.
Returns the y-coordinate of the Node as an int.
- Returns
- the y-coordinate of the Node as an int.
Definition at line 50 of file Node.java.
| void Node.setCoords |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
Sets the coordinates of the Node.
- Parameters
-
| x | The new x-coordinate of the Node. |
| y | The new y-coordinate of the Node. |
Definition at line 59 of file Node.java.
The documentation for this class was generated from the following file:
- /Users/neco/Desktop/FDEB/HomePage/src/Node.java