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

java.lang.Object
  extended by edu.jhu.ece.iacl.jist.structures.geom.Face
      extended by edu.jhu.ece.iacl.jist.structures.geom.TriangleFace
All Implemented Interfaces:
java.lang.Comparable<Face>

public class TriangleFace
extends Face

The Class TriangleFace.


Field Summary
 Triangle triangle
          The triangle.
 
Constructor Summary
TriangleFace(Edge e1, Edge e2, Edge e3)
          Instantiates a new triangle face.
TriangleFace(Vertex v1, Vertex v2, Vertex v3)
          Instantiates a new triangle face.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Edge[] getEdges()
          Gets the edges.
 Vector3f getNormal()
          Gets the normal.
 Vertex[] getVertices()
          Gets the vertices.
 java.lang.String toString()
           
 
Methods inherited from class edu.jhu.ece.iacl.jist.structures.geom.Face
compareTo
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

triangle

public Triangle triangle
The triangle.

Constructor Detail

TriangleFace

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

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

TriangleFace

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

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

getNormal

public Vector3f getNormal()
Gets the normal.

Returns:
the normal

getVertices

public Vertex[] getVertices()
Description copied from class: Face
Gets the vertices.

Specified by:
getVertices in class Face
Returns:
the vertices

getEdges

public Edge[] getEdges()
Description copied from class: Face
Gets the edges.

Specified by:
getEdges in class Face
Returns:
the edges

toString

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

equals

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