|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.mines.jtk.mesh.TetMesh.Edge
public static class TetMesh.Edge
A directed edge.
An edge is specified by two nodes A and B. The order of these nodes is significant. An edge is directed from A to B.
Every edge has a mate. An edge and its mate reference the same two nodes, but in the opposite order, so they have opposite directions. Therefore, an edge does not equal its mate.
When constructing an edge, a tet that references the two nodes A and B may be specified. If non-null, this tet may used to quickly get any face or tet nabors of the edge.
| Constructor Summary | |
|---|---|
TetMesh.Edge(TetMesh.Node a,
TetMesh.Node b)
Constructs a directed edge that references the specified nodes. |
|
TetMesh.Edge(TetMesh.Node a,
TetMesh.Node b,
TetMesh.Tet abcd)
Constructs a directed edge that references the specified nodes. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
|
int |
hashCode()
|
TetMesh.Edge |
mate()
Returns the mate of this edge. |
double[] |
midpoint()
Returns the midpoint of this face. |
double |
midpoint(double[] c)
Computes the midpoint of this edge. |
TetMesh.Node |
nodeA()
Returns the node A at which this edge begins. |
TetMesh.Node |
nodeB()
Returns the node B at which this edge ends. |
TetMesh.Tet |
tet()
Returns the tet that references the nodes in this edge. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TetMesh.Edge(TetMesh.Node a,
TetMesh.Node b)
a - a node of the edge.b - a node of the edge.
public TetMesh.Edge(TetMesh.Node a,
TetMesh.Node b,
TetMesh.Tet abcd)
a - a node of the edge.b - a node of the edge.abcd - a tet that references nodes A and B; null, if none.| Method Detail |
|---|
public TetMesh.Node nodeA()
public TetMesh.Node nodeB()
public TetMesh.Tet tet()
public TetMesh.Edge mate()
public double midpoint(double[] c)
c - array of midpoint coordinates {xc,yc,zc}.
public double[] midpoint()
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||