This class represents an Edge of the graph or the control mesh.
More...
This class represents an Edge of the graph or the control mesh.
- Author
- Kurt Leimer
Definition at line 14 of file Edge.java.
Edge.Edge |
( |
Node |
startNode, |
|
|
Node |
endNode |
|
) |
| |
Edge.Edge |
( |
Node |
startNode, |
|
|
double |
angleXAxis |
|
) |
| |
Creates an Edge of length 1 with the specified start node and angle to the x-axis.
- Parameters
-
startNode | The start Node of the Edge. |
angleXAxis | The angle to the x-axis. |
Definition at line 41 of file Edge.java.
Creates an Edge from a DEdge object used in the JDelaunay-library.
- Parameters
-
dEdge | The DEdge object used for the creation of the Edge. |
Definition at line 53 of file Edge.java.
void Edge.addSubNode |
( |
Node |
node) | |
|
Adds a sub-Node to the Edge.
- Parameters
-
node | The sub-Node that is added to the Edge. |
Definition at line 102 of file Edge.java.
double Edge.angleXAxis |
( |
) | |
|
Returns the angle of the Edge to the x-axis.
- Returns
- the angle of the Edge to the x-axis.
Definition at line 119 of file Edge.java.
Returns the length of the Edge in x-direction.
- Returns
- the length of the Edge in x-direction.
Definition at line 130 of file Edge.java.
Returns the length of the Edge in y-direction.
- Returns
- the length of the Edge in y-direction.
Definition at line 138 of file Edge.java.
Node Edge.getStartNode |
( |
) | |
|
ArrayList<Node> Edge.getSubNodes |
( |
) | |
|
Returns the sub-Nodes of the Edge.
- Returns
- the sub-Nodes of the Edge.
Definition at line 94 of file Edge.java.
Returns the intersection of the Edge with the specified other Edge.
- Parameters
-
other | The other Edge which is intersected. |
- Returns
- the intersection of the two Edges.
Definition at line 195 of file Edge.java.
boolean Edge.isIncident |
( |
Node |
node) | |
|
Returns whether the specified Node is incident to the Edge.
- Parameters
-
node | The node which is checked. |
- Returns
- true if the specified node is incident, false otherwise.
Definition at line 111 of file Edge.java.
double Edge.magnitude |
( |
) | |
|
Returns the Euclidian length of the Edge.
- Returns
- the Euclidian length of the Edge.
Definition at line 146 of file Edge.java.
void Edge.setEndNode |
( |
Node |
endNode) | |
|
void Edge.setStartNode |
( |
Node |
startNode) | |
|
int [] Edge.subNodesXInt |
( |
) | |
|
Returns an array with the Integer x-coordinates of the sub-Nodes of the Edge.
- Returns
- an array with the Integer x-coordinates of the sub-Nodes of the Edge.
Definition at line 154 of file Edge.java.
int [] Edge.subNodesYInt |
( |
) | |
|
Returns an array with the Integer y-coordinates of the sub-Nodes of the Edge.
- Returns
- an array with the Integer y-coordinates of the sub-Nodes of the Edge.
Definition at line 166 of file Edge.java.
Converts the Edge to a DEdge object used in the JDelaunay-library.
- Returns
- the converted DEdge.
Definition at line 178 of file Edge.java.
LineSegment Edge.toLineSegment |
( |
) | |
|
Converts the Edge to a LineSegment object used in the JTS-library.
- Returns
- the converted LineSegment.
Definition at line 186 of file Edge.java.
The documentation for this class was generated from the following file:
- /Users/neco/Desktop/GBEC/HomePage/src/Edge.java