com.sygem.jazz3d3.primitive
Class Triangle3d

java.lang.Object
  extended bycom.sygem.jazz3d3.Object3d
      extended bycom.sygem.jazz3d3.primitive.Triangle3d

public class Triangle3d
extends Object3d

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

Version:
3.0a
See Also:
Object3d

Field Summary
 
Fields inherited from class com.sygem.jazz3d3.Object3d
USE_ONE_RENDERER, WRAP_FRONT, WRAP_TOP
 
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, culled, getCenter, getChildObjects, getCollidable, getCulling, getFace, getFaceColour, getID, getName, getNumberOfFaces, getNumberOfSubFaces, getNumberOfSubVertices, getNumberOfVertices, getOrientationMatrix, getRenderer, getRotationMatrix, getShapeArray, getUseVertexUVCoords, getVertex, getVertexArray, getVisible, getWorldVertex, init, pick, pickClosest, pickFace, prepForDisplay, recreateVertexNormals, rotateLocal, rotateLocal, rotateWorld, rotateWorld, scaleObject, setAllTextures, setAmbientColour, setCollidable, setColour, setCulling, setFaceColour, setFaceColourQuick, setID, setName, setPosition, setRenderer, setShapeArray, setTexture, setTexture, setUseVertexUVCoords, setVertexArray, setVertexTexture, setVisible, toString, translateLocal, translateWorld, visible, wrapUV
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, 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


Copyright © 1999-2006 SyGem Software. All Rights Reserved.