|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.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 verticesMethod Detail |
---|
public int getIndex()
Indexed
getIndex
in interface Indexed
public Vertex getVertex(int index)
Face
getVertex
in interface Face
index
- The vertex index
public int getNumVertices()
Face
getNumVertices
in interface Face
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public 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 |