edu.jhu.ece.iacl.jist.structures.geom
Class Edge

java.lang.Object
  extended by edu.jhu.ece.iacl.jist.structures.geom.Segment
      extended by 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.


Field Summary
 
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.
 
Method Summary
 void add(Triangle tri)
          Adds the.
 int compareTo(Edge e)
           
 boolean equals(java.lang.Object o)
           
static Edge link(Vertex v1, Vertex v2)
          Link.
 
Methods inherited from class edu.jhu.ece.iacl.jist.structures.geom.Segment
contains, contains, flip, getOpposite, getVector, toArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Edge

protected Edge(Vertex v1,
               Vertex v2)
Instantiates a new edge.

Parameters:
v1 - the v1
v2 - the v2
Method Detail

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 v1
v2 - the v2
Returns:
the edge

compareTo

public int compareTo(Edge e)
Specified by:
compareTo in interface java.lang.Comparable<Edge>