|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.javagl.simplemesh.impl.DefaultFace
public class DefaultFace
Default implementation of a Face. Note that comparing
instances of this class will not take into account the index
of the faces.
| Constructor Summary | |
|---|---|
DefaultFace(int index,
Vertex... vertices)
Creates a new face with the given index and vertices |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
int |
getIndex()
Returns the index of this object |
int |
getNumVertices()
Returns the number of vertices of this face |
Vertex |
getVertex(int index)
Returns the specified vertex |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultFace(int index,
Vertex... vertices)
index - The indexvertices - The vertices| Method Detail |
|---|
public int getIndex()
Indexed
getIndex in interface Indexedpublic Vertex getVertex(int index)
Face
getVertex in interface Faceindex - The vertex index
public int getNumVertices()
Face
getNumVertices in interface Facepublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||