|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectCamera
public class Camera
Constructor Summary | |
---|---|
Camera()
|
Method Summary | |
---|---|
VectorXYZ |
getLookAt()
|
VectorXYZ |
getPos()
|
VectorXYZ |
getRight()
returns the vector that is orthogonal to the connection between pos and lookAt and points to the right of it. |
VectorXYZ |
getViewDirection()
returns the view direction vector with length 1 |
void |
move(double moveX,
double moveY,
double moveZ)
moves both pos and lookAt by the given vector |
void |
move(VectorXYZ move)
moves both pos and lookAt by the given vector |
void |
moveForward(double step)
moves pos and lookAt in the view direction |
void |
moveRight(double step)
moves pos and lookAt to the right, orthogonally to the view direction |
void |
rotateAroundRight(double d)
moves lookAt to represent a rotation counterclockwise around the direction returned by getRight() |
void |
rotateY(double d)
moves lookAt to represent a rotation counterclockwise around the y axis on pos |
void |
setLookAt(double x,
double y,
double z)
|
void |
setLookAt(VectorXYZ lookAt)
|
void |
setPos(double x,
double y,
double z)
|
void |
setPos(VectorXYZ pos)
|
String |
toString()
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Camera()
Method Detail |
---|
public VectorXYZ getViewDirection()
public VectorXYZ getRight()
public VectorXYZ getPos()
public VectorXYZ getLookAt()
public void setPos(VectorXYZ pos)
public void setPos(double x, double y, double z)
public void setLookAt(VectorXYZ lookAt)
public void setLookAt(double x, double y, double z)
public void moveForward(double step)
step
- units to move forwardpublic void moveRight(double step)
step
- units to move right, negative units move to the leftpublic void move(VectorXYZ move)
public void move(double moveX, double moveY, double moveZ)
public void rotateY(double d)
d
- angle in radianspublic void rotateAroundRight(double d)
getRight()
d
- angle in radianspublic String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |