com.sygem.jazz3d3.primitive
Class Quad3d
java.lang.Object
|
+--com.sygem.jazz3d3.Object3d
|
+--com.sygem.jazz3d3.primitive.Quad3d
- public class Quad3d
- extends Object3d
A simple quadrilateral (4-sided) primitive. This object consists of just one face.
- Version:
- 3.0a
- Author:
- SyGem Software
- See Also:
Object3d
Constructor Summary |
Quad3d(double x,
double y,
double z)
Default constructor. |
Method Summary |
void |
setVertex1(double x,
double y,
double z)
Sets the co-ordinates of the first vertex of the quad. |
void |
setVertex2(double x,
double y,
double z)
Sets the co-ordinates of the second vertex of the quad. |
void |
setVertex3(double x,
double y,
double z)
Sets the co-ordinates of the third vertex of the quad. |
void |
setVertex4(double x,
double y,
double z)
Sets the co-ordinates of the fourth vertex of the quad. |
Methods inherited from class com.sygem.jazz3d3.Object3d |
addChild, addQuad, addTriangle, addVertex, applyFaceChanges, cleanUp, getCenter, getChildObjects, getCollidable, getCulling, getFace, getFaceColour, getID, getName, getNumberOfFaces, getNumberOfSubFaces, getNumberOfSubVertices, getNumberOfVertices, getRenderer, getShapeArray, getUseVertexUVCoords, getVertex, getVertexArray, getVisible, getWorldVertex, pick, pickClosest, pickFace, prepForDisplay, recreateVertexNormals, rotateLocal, rotateLocal, rotateWorld, rotateWorld, scaleObject, setAllTextures, setAmbientColour, setCollidable, setColour, setCulling, setFaceColour, setFaceColourQuick, setName, setPosition, setRenderer, setShapeArray, setTexture, setTexture, setUseVertexUVCoords, setVertexArray, setVertexTexture, setVisible, translateLocal, translateWorld |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Quad3d
public Quad3d(double x,
double y,
double z)
- Default constructor.
- Parameters:
x
- The x coordinate of the center point of the objecty
- The y coordinate of the center point of the objectz
- The z coordinate of the center point of the object
setVertex1
public final void setVertex1(double x,
double y,
double z)
- Sets the co-ordinates of the first vertex of the quad.
- Parameters:
x
- The new x position of the vertexy
- The new y position of the vertexz
- The new z position of the vertex
setVertex2
public final void setVertex2(double x,
double y,
double z)
- Sets the co-ordinates of the second vertex of the quad.
- Parameters:
x
- The new x position of the vertexy
- The new y position of the vertexz
- The new z position of the vertex
setVertex3
public final void setVertex3(double x,
double y,
double z)
- Sets the co-ordinates of the third vertex of the quad.
- Parameters:
x
- The new x position of the vertexy
- The new y position of the vertexz
- The new z position of the vertex
setVertex4
public final void setVertex4(double x,
double y,
double z)
- Sets the co-ordinates of the fourth vertex of the quad.
- Parameters:
x
- The new x position of the vertexy
- The new y position of the vertexz
- The new z position of the vertex