edu.jhu.ece.iacl.jist.structures.geom
Class Edge
java.lang.Object
edu.jhu.ece.iacl.jist.structures.geom.Segment
edu.jhu.ece.iacl.jist.structures.geom.Edge
- All Implemented Interfaces:
- java.lang.Comparable<Edge>
public class Edge
- extends Segment
- implements java.lang.Comparable<Edge>
The Class Edge.
| Fields inherited from class edu.jhu.ece.iacl.jist.structures.geom.Segment |
v1, v2 |
|
Constructor Summary |
protected |
Edge(Vertex v1,
Vertex v2)
Instantiates a new edge. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Edge
protected Edge(Vertex v1,
Vertex v2)
- Instantiates a new edge.
- Parameters:
v1 - the v1v2 - the v2
add
public void add(Triangle tri)
- Adds the.
- Parameters:
tri - the tri
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
link
public static Edge link(Vertex v1,
Vertex v2)
- Link.
- Parameters:
v1 - the v1v2 - the v2
- Returns:
- the edge
compareTo
public int compareTo(Edge e)
- Specified by:
compareTo in interface java.lang.Comparable<Edge>