|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectTurtle3D
| Constructor Summary | |
Turtle3D()
Creates a new instance of Turtle3D |
|
Turtle3D(double x,
double y,
double z)
Creates a new instance of Turtle3D |
|
Turtle3D(double x,
double y,
double z,
double alpha,
float length,
float width)
Creates a new instance of Turtle3D |
|
| Method Summary | |
javax.vecmath.AxisAngle4d |
createRotationAxisAngle()
method to create the rotation of the object given a specific axis-angle The axis and the angle of rotation are derived from the cross product of the current vector heading and the required direction vector |
void |
decreaseLength(double decLen)
|
void |
decreaseWidth(double decWidth)
|
double |
getAlpha()
|
javax.vecmath.Vector3d |
getH()
|
double |
getHeadingX()
|
double |
getHeadingY()
|
double |
getHeadingZ()
|
javax.vecmath.Vector3d |
getL()
|
double |
getLeftX()
|
double |
getLeftY()
|
double |
getLeftZ()
|
float |
getLength()
|
float |
getTempWidth()
|
javax.vecmath.Vector3d |
getU()
|
double |
getUpX()
|
double |
getUpY()
|
double |
getUpZ()
|
float |
getWidth()
|
double |
getX()
Set of accessor methods Used to get turtle values |
double |
getY()
|
double |
getZ()
|
void |
pitchDownL()
method to pitch the heading of the turtle down |
void |
pitchUpL()
the same as for pitchDownL but the head is turn upwards |
void |
rollLeftH()
method to roll the turtle to the left |
void |
rollRightH()
the same as rollRigthH but the turtle turns to the right |
void |
rotateToVertical()
method to move the turtle heading to the horizontal position |
void |
setAlpha(double alpha)
|
void |
setH(javax.vecmath.Vector3d H)
|
void |
setHLU(javax.vecmath.Vector3d H,
javax.vecmath.Vector3d L,
javax.vecmath.Vector3d U)
|
void |
setL(javax.vecmath.Vector3d L)
|
void |
setLength(float length)
|
void |
setNewPosition()
Set of mutator methods that change the orientation of the turtle method to move the turtle position to the next position The method calculates the next position by myltiplying the unit vector by the length of the segment |
void |
setTempWidth(float tempWidth)
|
void |
setU(javax.vecmath.Vector3d U)
|
void |
setWidth(float width)
|
void |
setX(double x)
Set of mutator methods used to change turtle values |
void |
setXYZ(double x,
double y,
double z)
|
void |
setY(double y)
|
void |
setZ(double z)
|
void |
turnAroundU()
method to turn the turtle around the u-axis by 180 |
void |
turnLeftU()
method to rotate the turtle heading to the left |
void |
turnRightU()
this is the same as the turnLeftU method by the heading turns right |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Turtle3D()
public Turtle3D(double x,
double y,
double z)
public Turtle3D(double x,
double y,
double z,
double alpha,
float length,
float width)
| Method Detail |
public javax.vecmath.AxisAngle4d createRotationAxisAngle()
public void decreaseLength(double decLen)
decLen - the amount to decrease the lengthpublic void decreaseWidth(double decWidth)
public double getAlpha()
public javax.vecmath.Vector3d getH()
public double getHeadingX()
public double getHeadingY()
public double getHeadingZ()
public javax.vecmath.Vector3d getL()
public double getLeftX()
public double getLeftY()
public double getLeftZ()
public float getLength()
public float getTempWidth()
public javax.vecmath.Vector3d getU()
public double getUpX()
public double getUpY()
public double getUpZ()
public float getWidth()
public double getX()
public double getY()
public double getZ()
public void pitchDownL()
public void pitchUpL()
public void rollLeftH()
public void rollRightH()
public void rotateToVertical()
public void setAlpha(double alpha)
alpha - the direction angle of the turtlepublic void setH(javax.vecmath.Vector3d H)
H - the heading vector
public void setHLU(javax.vecmath.Vector3d H,
javax.vecmath.Vector3d L,
javax.vecmath.Vector3d U)
H - the heading vectorL - the left vectorU - the up vectorpublic void setL(javax.vecmath.Vector3d L)
L - the left vectorpublic void setLength(float length)
length - the length of the section to drawpublic void setNewPosition()
public void setTempWidth(float tempWidth)
tempWidth - the temporal width used in parametric strings
to create sections that have a smoothly
decreasing widthpublic void setU(javax.vecmath.Vector3d U)
U - the up vectorpublic void setWidth(float width)
width - the width of the section to drawpublic void setX(double x)
x - the x-coordinate of the turtle
public void setXYZ(double x,
double y,
double z)
x - the x-coordinate of the turtley - the y-coordinate of the turtlez - the z-coordinate of the turtlepublic void setY(double y)
y - the y-coordinate of the turtlepublic void setZ(double z)
z - the z-coordinate of the turtlepublic void turnAroundU()
public void turnLeftU()
public void turnRightU()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||