Jazz3D API


com.sygem.jazz3d3.primitive
Class Triangle3d

java.lang.Object
  |
  +--com.sygem.jazz3d3.Object3d
        |
        +--com.sygem.jazz3d3.primitive.Triangle3d

public class Triangle3d
extends Object3d

A simple triangle primitive. This object consists of just one face.

Version:
3.0a
Author:
SyGem Software
See Also:
Object3d

Constructor Summary
Triangle3d(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 triangle.
 void setVertex2(double x, double y, double z)
          Sets the co-ordinates of the second vertex of the triangle.
 void setVertex3(double x, double y, double z)
          Sets the co-ordinates of the third vertex of the triangle.
 
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
 

Constructor Detail

Triangle3d

public Triangle3d(double x,
                  double y,
                  double z)
Default constructor.
Parameters:
x - The x coordinate of the center point of the object
y - The y coordinate of the center point of the object
z - The z coordinate of the center point of the object
Method Detail

setVertex1

public final void setVertex1(double x,
                             double y,
                             double z)
Sets the co-ordinates of the first vertex of the triangle.
Parameters:
x - The new x position of the vertex
y - The new y position of the vertex
z - 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 triangle.
Parameters:
x - The new x position of the vertex
y - The new y position of the vertex
z - 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 triangle.
Parameters:
x - The new x position of the vertex
y - The new y position of the vertex
z - The new z position of the vertex

©2001 SyGem Software