org.jcae.viewer3d
Class Position

java.lang.Object
  extended by org.jcae.viewer3d.Position

public class Position
extends java.lang.Object

This class describe where the user is in the 3D scene and in which direction he is watching. Note: Zooming is not the same thing than be closer from an object. By being closer from an object a user can go throught an object, but by zooming this must not happen.


Constructor Summary
Position(float x, float y, float z, float theta, float phi, float zoom)
           
 
Method Summary
 float getPhi()
           
 float getTheta()
           
 float getX()
           
 float getY()
           
 float getZ()
           
 float getZoom()
           
 void setPhi(float phi)
           
 void setTheta(float theta)
           
 void setX(float x)
           
 void setY(float y)
           
 void setZ(float z)
           
 void setZoom(float zoom)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Position

public Position(float x,
                float y,
                float z,
                float theta,
                float phi,
                float zoom)
Parameters:
x -
y -
z -
theta -
phi -
zoom -
Method Detail

getPhi

public float getPhi()

setPhi

public void setPhi(float phi)

getTheta

public float getTheta()

setTheta

public void setTheta(float theta)

getX

public float getX()

setX

public void setX(float x)

getY

public float getY()

setY

public void setY(float y)

getZ

public float getZ()

setZ

public void setZ(float z)

getZoom

public float getZoom()

setZoom

public void setZoom(float zoom)