|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sygem.jazz3d3.Vertex
The vertex class holds various useful bits of information about points in the Jazz3D universe.
The user should never need to create a Vertex object, but may be given them by methods from the Object3d class (like getCenter).
Object3d.getCenter()
Field Summary | |
float |
cx
|
float |
cy
|
float |
cz
|
boolean |
double_sided
|
float |
screenx
|
float |
screeny
|
static int |
UV_MULTIPLIER
|
Constructor Summary | |
Vertex()
Default constructor. |
|
Vertex(double xa,
double ya,
double za)
Create a vertex at position (x,y,z) |
|
Vertex(float xa,
float ya,
float za)
Create a vertex at position (x,y,z) |
|
Vertex(Vertex v)
|
Method Summary | |
float |
getFloatX()
|
float |
getFloatY()
|
float |
getFloatZ()
|
double |
getU()
|
double |
getV()
|
Vertex |
getVertexNormal()
Returns the normal vector for this vertex. |
double |
getX()
Returns the X component of the vertex. |
double |
getY()
Returns the Y component of the vertex. |
double |
getZ()
Returns the Z component of the vertex. |
void |
set(double newx,
double newy,
double newz)
Set the position of this vertex. |
void |
set(Vertex v)
Set the position of this vertex to be the same as another. |
void |
setUV(double u,
double v)
Set the UV coordinates of a Vertex. |
void |
setVertexNormal(Vertex norm)
Set the normal vector for this vertex. |
void |
setX(double newx)
Set the X component of the vertex. |
void |
setY(double newy)
Set the Y component of the vertex. |
void |
setZ(double newz)
Set the Z component of the vertex. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public float cx
public float cy
public float cz
public boolean double_sided
public float screenx
public float screeny
public static final int UV_MULTIPLIER
Constructor Detail |
public Vertex()
public Vertex(double xa, double ya, double za)
xa
- The x coordinate of the vertexya
- The y coordinate of the vertexza
- The z coordinate of the vertexpublic Vertex(float xa, float ya, float za)
xa
- The x coordinate of the vertexya
- The y coordinate of the vertexza
- The z coordinate of the vertexpublic Vertex(Vertex v)
Method Detail |
public final float getFloatX()
public final float getFloatY()
public final float getFloatZ()
public final double getU()
public final double getV()
public final Vertex getVertexNormal()
setVertexNormal(com.sygem.jazz3d3.Vertex)
public final double getX()
public final double getY()
public final double getZ()
public final void set(double newx, double newy, double newz)
newx
- The new X componentnewy
- The new Y componentnewz
- The new Z componentpublic final void set(Vertex v)
v
- A vertex to set the current values from.public final void setUV(double u, double v)
public final void setVertexNormal(Vertex norm)
norm
- The new vertex normalgetVertexNormal()
public final void setX(double newx)
newx
- The new X componentpublic final void setY(double newy)
newy
- The new Y componentpublic final void setZ(double newz)
newz
- The new Z component
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |