optics
Class EvenAspheric

java.lang.Object
  extended by optics.Optics
      extended by optics.SurfaceFunction
          extended by optics.Aspheric
              extended by optics.EvenAspheric

public class EvenAspheric
extends Aspheric

Class to implement an EvenAspheric being a expansion of even powers of the radius


Field Summary
 
Fields inherited from class optics.Aspheric
bc, curvature, epsilon
 
Fields inherited from class optics.Optics
DEFAULT_WAVELENGTH, errorStream, fmt, MICRONS
 
Constructor Summary
EvenAspheric(double c, double e, double[] b)
          Form an EvenAspheric with specified curvature and
EvenAspheric(double c, double e, int n)
          Form an EvenAspheric with specifed curvatatre and n aspheric coefficeints pre-set to zero.
 
Method Summary
 Director getNormal(double x, double y)
          Method to get the surface normal at x/y location
 double getProfile(double x, double y)
          Get the surface profile at a position x/y
 
Methods inherited from class optics.Aspheric
getAspheric, getCurvature, getNormal, getProfile, getQuadric, getValue, scale, setAspheric, setAspheric, setCurvature, setQuadric
 
Methods inherited from class optics.SurfaceFunction
getValue
 
Methods inherited from class optics.Optics
getDefaultWaveLength, getErrorStream, getFormatString, getName, getStaticName, getVersion, printError, setDefaultWaveLength, setErrorStream, setFormatString, setMicrons
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EvenAspheric

public EvenAspheric(double c,
                    double e,
                    double[] b)
Form an EvenAspheric with specified curvature and

Parameters:
c - the curvature
e - the quadric parameter
b - the Aspheric coefficients

EvenAspheric

public EvenAspheric(double c,
                    double e,
                    int n)
Form an EvenAspheric with specifed curvatatre and n aspheric coefficeints pre-set to zero.

Parameters:
c - the curvature
e - the quadric parameter
n - the number of Aspheric coefficients.
Method Detail

getProfile

public double getProfile(double x,
                         double y)
Get the surface profile at a position x/y

Specified by:
getProfile in class Aspheric
Parameters:
x - the x location
y - the y location
Returns:
double the profile

getNormal

public Director getNormal(double x,
                          double y)
Method to get the surface normal at x/y location

Specified by:
getNormal in class Aspheric
Parameters:
x - the x location
y - the y location
Returns:
Director the surface normal