| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectoptics.Angles
public class Angles
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 | 
|---|
public double theta
public double psi
| Constructor Detail | 
|---|
public Angles(double theta,
              double psi)
Angles object specifing
     both angle in radians.
theta - the theta anglepsi - the psi anglepublic Angles(Director u)
Angles object specifing a 
     Director
u - the Directorpublic Angles(double theta)
Angles object specifing of the theta
     angle, the psi defaulting to zero.
theta - the theta anglepublic Angles()
Angles object with both angles
     defaulting to zero
public Angles(Angles a)
Angles object with angle taken from the
    specifying Angles object
| Method Detail | 
|---|
public Angles clone()
clone in class java.lang.ObjectAngles clone of current Angles object
public void set(double th,
                double ps)
th - the theta angleps - the psi angle
public void setDegrees(double th,
                       double ps)
th - the theta angleps - the psi anglepublic double getTheta()
double the theta anglepublic double getThetaDegrees()
double the theta angle in degreespublic double getPsi()
double the psi anglepublic double getPsiDegrees()
double the psi angle in degreespublic java.lang.String toString()
toString in class java.lang.Object
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||