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

java.lang.Object
  extended by edu.jhu.ece.iacl.jist.structures.geom.Triangle

public class Triangle
extends java.lang.Object

The Class Triangle.


Field Summary
 Edge e1
          The e3.
 Edge e2
          The e3.
 Edge e3
          The e3.
 Vertex v1
          The v3.
 Vertex v2
          The v3.
 Vertex v3
          The v3.
 
Constructor Summary
Triangle(Edge e1, Edge e2, Edge e3)
          Instantiates a new triangle.
Triangle(Vertex v1, Vertex v2, Vertex v3)
          Instantiates a new triangle.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Vertex getOpposite(Edge e)
          Gets the opposite.
 Edge getOpposite(Vertex v)
          Gets the opposite.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

v1

public Vertex v1
The v3.


v2

public Vertex v2
The v3.


v3

public Vertex v3
The v3.


e1

public Edge e1
The e3.


e2

public Edge e2
The e3.


e3

public Edge e3
The e3.

Constructor Detail

Triangle

public Triangle(Edge e1,
                Edge e2,
                Edge e3)
Instantiates a new triangle.

Parameters:
e1 - the e1
e2 - the e2
e3 - the e3

Triangle

public Triangle(Vertex v1,
                Vertex v2,
                Vertex v3)
Instantiates a new triangle.

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

getOpposite

public Edge getOpposite(Vertex v)
Gets the opposite.

Parameters:
v - the v
Returns:
the opposite

getOpposite

public Vertex getOpposite(Edge e)
Gets the opposite.

Parameters:
e - the e
Returns:
the opposite

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object