|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmathcomp.gridgeom.Triangle
public class Triangle
A Triangle consists of three nodes and three edges.
Constructor Summary | |
---|---|
Triangle(Edge[] edges)
|
|
Triangle(Node[] nodes)
|
|
Triangle(Triangle old)
|
Method Summary | |
---|---|
boolean |
containsNode(Node node)
|
java.util.List |
createNodesList()
Returns the points. |
double |
getArea()
|
Edge |
getEdge(int i)
Returns the edge. |
double |
getEdgeLength(int i)
|
int |
getLocalEdgeNumber(Edge edge)
|
int |
getLocalNodeNumber(Node node)
|
double |
getMaxEdgeLen()
|
Node |
getMiddleNode()
|
double |
getMinEdgeLen()
|
Node |
getNode(int i)
Returns the knot. |
Node |
node(int i)
Returns the i -th node. |
int |
nodesCount()
Number of nodes. |
void |
setEdge(int i,
Edge e)
|
void |
setEdgeWithReplacing(int i,
Triangle old,
Edge e)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Triangle(Node[] nodes)
public Triangle(Edge[] edges)
public Triangle(Triangle old)
Method Detail |
---|
public Edge getEdge(int i)
public void setEdge(int i, Edge e)
public void setEdgeWithReplacing(int i, Triangle old, Edge e)
public java.util.List createNodesList()
public Node getNode(int i)
public java.lang.String toString()
toString
in class java.lang.Object
public double getEdgeLength(int i)
public double getMaxEdgeLen()
public double getMinEdgeLen()
public double getArea()
public Node getMiddleNode()
public boolean containsNode(Node node)
public int getLocalNodeNumber(Node node)
public int getLocalEdgeNumber(Edge edge)
public int nodesCount()
Geometric
nodesCount
in interface Geometric
public Node node(int i)
Geometric
i
-th node.
node
in interface Geometric
i
-th node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |