|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sygem.jazz3d3.Object3d
com.sygem.jazz3d3.primitive.Line3d
Allows you to create a 3d line object.
Object3d
Field Summary |
Fields inherited from class com.sygem.jazz3d3.Object3d |
USE_ONE_RENDERER, WRAP_FRONT, WRAP_TOP |
Constructor Summary | |
Line3d(double x1,
double y1,
double z1,
double x2,
double y2,
double z2)
Default constructor. |
Method Summary | |
Vertex |
getWorldVertex(int vertid)
Get a particular vertex from this object, the coordinates of which will be in world-space. |
void |
setVertex1(double x,
double y,
double z)
Set the position of the first end of the line. |
void |
setVertex2(double x,
double y,
double z)
Set the position of the first end of the line. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Line3d(double x1, double y1, double z1, double x2, double y2, double z2)
x1
- The x position of the first end of the liney1
- The y position of the first end of the linez1
- The z position of the first end of the linex2
- The x position of the second end of the liney2
- The y position of the second end of the linez2
- The z position of the second end of the lineMethod Detail |
public Vertex getWorldVertex(int vertid)
getWorldVertex
in class Object3d
vertid
- The id of the vertex you want - starts from zero.
public final void setVertex1(double x, double y, double z)
x
- The x position of the first end of the liney
- The y position of the first end of the linez
- The z position of the first end of the linepublic final void setVertex2(double x, double y, double z)
x
- The x position of the second end of the liney
- The y position of the second end of the linez
- The z position of the second end of the line
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |