|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Turtle3D
3D Turtle interface
Method Summary | |
---|---|
void |
forward(float distance)
Move forward |
int |
getDepth()
Depth reached by turtle. |
int |
getMaximalDepth()
Maximal depth reached by turtle. |
javax.vecmath.Matrix4f |
getTransformMatrix()
Get turtle's actual tranformation matrix as a copy. |
void |
pitch(float angle)
Pitch down/up |
void |
pop()
Pop transformation from the stack and make it actual one |
void |
push()
Push actual transformation to the stack |
void |
roll(float angle)
Roll left/right |
void |
scale(float x,
float y,
float z)
Scale turtle |
void |
transform(javax.vecmath.Matrix4f matrix)
Tranform turtle's position |
void |
turn(float angle)
Turn left/right |
Method Detail |
---|
void forward(float distance)
distance
- Distance to move, negative value means backwardsvoid turn(float angle)
angle
- Angle in degrees, negative means leftvoid roll(float angle)
angle
- Angle in degrees, negative means leftvoid pitch(float angle)
angle
- Angle in degrees, negative means downvoid push()
void pop()
javax.vecmath.Matrix4f getTransformMatrix()
int getDepth()
int getMaximalDepth()
void transform(javax.vecmath.Matrix4f matrix)
matrix
- 4x4 transform matrixvoid scale(float x, float y, float z)
x
- scale axis xy
- scale axis yz
- scale axis z
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |