Package com.jogamp.graph.geom
Class SVertex
java.lang.Object
com.jogamp.graph.geom.SVertex
- All Implemented Interfaces:
Vertex
,Vert2fImmutable
,Vert3fImmutable
,Cloneable
A Simple Vertex Implementation. Where the coordinates, and other attributes are
float based, and the coordinates and texture coordinates are saved in two float arrays.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
static SVertex.Factory
factory()
final float[]
getCoord()
int
final int
getId()
final float[]
final float
getX()
final float
getY()
final float
getZ()
final int
hashCode()
final boolean
final void
setCoord
(float[] coordsBuffer, int offset, int length) final void
setCoord
(float x, float y, float z) final void
setId
(int id) final void
setOnCurve
(boolean onCurve) final void
setTexCoord
(float[] texCoordsBuffer, int offset, int length) final void
setTexCoord
(float s, float t, float p) final void
setX
(float x) final void
setY
(float y) final void
setZ
(float z) toString()
-
Constructor Details
-
SVertex
public SVertex() -
SVertex
-
SVertex
public SVertex(int id, boolean onCurve, float[] texCoordsBuffer) -
SVertex
public SVertex(float x, float y, float z, boolean onCurve) -
SVertex
public SVertex(float[] coordsBuffer, int offset, int length, boolean onCurve)
-
-
Method Details
-
factory
-
setCoord
public final void setCoord(float x, float y, float z) -
setCoord
public final void setCoord(float[] coordsBuffer, int offset, int length) -
getCoordCount
public int getCoordCount()- Specified by:
getCoordCount
in interfaceVert2fImmutable
-
getCoord
public final float[] getCoord()- Specified by:
getCoord
in interfaceVert2fImmutable
-
setX
public final void setX(float x) -
setY
public final void setY(float y) -
setZ
public final void setZ(float z) -
getX
public final float getX()- Specified by:
getX
in interfaceVert2fImmutable
-
getY
public final float getY()- Specified by:
getY
in interfaceVert2fImmutable
-
getZ
public final float getZ()- Specified by:
getZ
in interfaceVert3fImmutable
-
isOnCurve
public final boolean isOnCurve() -
setOnCurve
public final void setOnCurve(boolean onCurve) - Specified by:
setOnCurve
in interfaceVertex
-
getId
public final int getId() -
setId
public final void setId(int id) -
equals
-
hashCode
public final int hashCode() -
getTexCoord
public final float[] getTexCoord()- Specified by:
getTexCoord
in interfaceVertex
-
setTexCoord
public final void setTexCoord(float s, float t, float p) - Specified by:
setTexCoord
in interfaceVertex
-
setTexCoord
public final void setTexCoord(float[] texCoordsBuffer, int offset, int length) - Specified by:
setTexCoord
in interfaceVertex
- See Also:
-
clone
-
toString
-