|
Jazz3D API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.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()
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) |
Method Summary | |
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 |
Constructor Detail |
public Vertex(float xa, float ya, float za)
x
- The x coordinate of the vertexy
- The y coordinate of the vertexz
- The z coordinate of the vertexpublic Vertex(double xa, double ya, double za)
x
- The x coordinate of the vertexy
- The y coordinate of the vertexz
- The z coordinate of the vertexpublic Vertex()
Method Detail |
public final double getZ()
public final double getY()
public final double getX()
public final void setZ(double newz)
newz
- The new Z componentpublic final void setY(double newy)
newy
- The new Y componentpublic final void setX(double newx)
newx
- The new X componentpublic final void set(Vertex v)
v
- A vertex to set the current values from.public final void set(double newx, double newy, double newz)
newx
- The new X componentnewy
- The new Y componentnewz
- The new Z componentpublic final Vertex getVertexNormal()
setVertexNormal(com.sygem.jazz3d3.Vertex)
public final void setVertexNormal(Vertex norm)
norm
- The new vertex normalgetVertexNormal()
public final void setUV(double u, double v)
|
©2001 SyGem Software |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |