frams_client_3d
Class Camera

java.lang.Object
  extended byframs_client_3d.Camera

public class Camera
extends java.lang.Object

Camera class.

Author:
MoMaT

Field Summary
private  Point3D eye
           
private  Vector3D up
           
private  Point3D view
           
 
Constructor Summary
Camera()
           
 
Method Summary
 float[] getEye()
          Eye position getter.
 float[] getUp()
          Up vector getter.
 float[] getView()
          View position getter.
 Vector3D getViewVector()
          View vector getter.
 void level(float speed)
           
 void move(float speed)
           
 void rotateHorizontal(float angle)
           
 void rotateVertical(float angle)
           
 void setPosition(float[] eye, float[] view, float[] up)
           
 void strafe(float speed)
           
 void zoom(float speed)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eye

private Point3D eye

view

private Point3D view

up

private Vector3D up
Constructor Detail

Camera

public Camera()
Method Detail

setPosition

public void setPosition(float[] eye,
                        float[] view,
                        float[] up)

zoom

public void zoom(float speed)

move

public void move(float speed)

level

public void level(float speed)

strafe

public void strafe(float speed)

rotateHorizontal

public void rotateHorizontal(float angle)

rotateVertical

public void rotateVertical(float angle)

getEye

public float[] getEye()
Eye position getter.

Returns:
eye point

getView

public float[] getView()
View position getter.

Returns:
view point

getUp

public float[] getUp()
Up vector getter.

Returns:
up vector

getViewVector

public Vector3D getViewVector()
View vector getter.

Returns:
view vector