|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.grogra.billboard.RotationCamera
public class RotationCamera
This is an implementation to rotate the camera around an axis by a given distance and a given angle.
Constructor Summary | |
---|---|
RotationCamera()
|
Method Summary | |
---|---|
TMatrix4d |
calculateMatrix(double angle)
This calculate a new matrix depending on angle and the initial matrix of the camera. |
View3D |
getView3D()
Gets the view3d |
void |
lookUpAndDown(double angle)
If the camera has to look up or look down, just invoke this method. |
void |
makeParallel()
Makes the projection of the camera parallel. |
void |
makePerspective()
Makes the projection of the camera perspective. |
void |
moveAroundZ(double angle)
Just invoke calculateMatrix(double) and set the transformation
of the camera. |
void |
setDistance(double dist,
double zOffset)
Sets the height and the distance to worlds origin of the camera. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RotationCamera()
Method Detail |
---|
public TMatrix4d calculateMatrix(double angle)
angle
- Value of the Rotation.
public View3D getView3D()
view3d
public void lookUpAndDown(double angle)
angle
- Rotate the Camera around local x-axis.public void makeParallel()
public void makePerspective()
public void moveAroundZ(double angle)
calculateMatrix(double)
and set the transformation
of the camera.
anglePerStep
- Value for one step of rotation.step
- Number of current step.public void setDistance(double dist, double zOffset)
dist
- Distance to the coordinates origin on.zOffset
- Height of the camera over the ground.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |