optics
Class Angles

java.lang.Object
  extended by optics.Angles

public class Angles
extends java.lang.Object

Class to implement the two director angles theta and psi


Field Summary
 double psi
          The psi angle
 double theta
          The theta angle
 
Constructor Summary
Angles()
          Form a Angles object with both angles defaulting to zero
Angles(Angles a)
          Form a Angles object with angle taken from the specifying Angles object
Angles(Director u)
          Form a Angles object specifing a Director
Angles(double theta)
          Form a Angles object specifing of the theta angle, the psi defaulting to zero.
Angles(double theta, double psi)
          Form a Angles object specifing both angle in radians.
 
Method Summary
 Angles clone()
          Method to clone the current Angles object.
 double getPsi()
          Method to get the psi angle wrt to z-axis
 double getPsiDegrees()
          Method to get the psi angle wrt to z-axis in degress
 double getTheta()
          Method to get the theta angle wrt to z-axis
 double getThetaDegrees()
          Method to get the theta angle wrt to z-axis in degrees
 void set(double th, double ps)
          Method to set the two angles in radians
 void setDegrees(double th, double ps)
          Method to set the two angles in degrees
 java.lang.String toString()
          Method to get as information as formatted String.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

theta

public double theta
The theta angle


psi

public double psi
The psi angle

Constructor Detail

Angles

public Angles(double theta,
              double psi)
Form a Angles object specifing both angle in radians.

Parameters:
theta - the theta angle
psi - the psi angle

Angles

public Angles(Director u)
Form a Angles object specifing a Director

Parameters:
u - the Director

Angles

public Angles(double theta)
Form a Angles object specifing of the theta angle, the psi defaulting to zero.

Parameters:
theta - the theta angle

Angles

public Angles()
Form a Angles object with both angles defaulting to zero


Angles

public Angles(Angles a)
Form a Angles object with angle taken from the specifying Angles object

Method Detail

clone

public Angles clone()
Method to clone the current Angles object.

Overrides:
clone in class java.lang.Object
Returns:
Angles clone of current Angles object

set

public void set(double th,
                double ps)
Method to set the two angles in radians

Parameters:
th - the theta angle
ps - the psi angle

setDegrees

public void setDegrees(double th,
                       double ps)
Method to set the two angles in degrees

Parameters:
th - the theta angle
ps - the psi angle

getTheta

public double getTheta()
Method to get the theta angle wrt to z-axis

Returns:
double the theta angle

getThetaDegrees

public double getThetaDegrees()
Method to get the theta angle wrt to z-axis in degrees

Returns:
double the theta angle in degrees

getPsi

public double getPsi()
Method to get the psi angle wrt to z-axis

Returns:
double the psi angle

getPsiDegrees

public double getPsiDegrees()
Method to get the psi angle wrt to z-axis in degress

Returns:
double the psi angle in degrees

toString

public java.lang.String toString()
Method to get as information as formatted String.

Overrides:
toString in class java.lang.Object