This class represents a Node of the graph or control mesh.
More...
This class represents a Node of the graph or control mesh.
- Author
- Kurt Leimer
Definition at line 12 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 21 of file Node.java.
Node.Node |
( |
Coordinate |
coordinate) | |
|
Creates a Node from a Coordinate object used in the JTS-library.
- Parameters
-
coordinate | The Coordinate object used for the creation of the Node. |
Definition at line 30 of file Node.java.
Node.Node |
( |
DPoint |
dPoint) | |
|
Creates a Node from a DPoint object used in the JDelaunay-library.
- Parameters
-
dPoint | The DPoint object used for the creation of the Node. |
Definition at line 39 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 91 of file Node.java.
Returns the x-coordinate of the Node.
- Returns
- the x-coordinate of the Node.
Definition at line 48 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 56 of file Node.java.
Returns the y-coordinate of the Node.
- Returns
- the y-coordinate of the Node.
Definition at line 64 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 72 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 81 of file Node.java.
Coordinate Node.toCoordinate |
( |
) | |
|
Converts the Node to a Coordinate object used in the JTS-library.
- Returns
- the converted Coordinate object.
Definition at line 100 of file Node.java.
Converts the Node to a DPoint object used in the JDelaunay-library.
- Returns
- the converted DPoint object.
Definition at line 108 of file Node.java.
The documentation for this class was generated from the following file:
- /Users/neco/Desktop/GBEC/HomePage/src/Node.java