de.grogra.billboard
public class RotationCamera extends java.lang.Object
| Constructor and Description |
|---|
RotationCamera() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public TMatrix4d calculateMatrix(double angle)
angle - Value of the Rotation.public View3D getView3D()
view3dpublic 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.