Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
Beam Class Reference

Public Member Functions

 Beam (double widthDeg=1.0)
 
Beam & operator= (const double &widthDeg)
 
void setBeamWidthDeg (double width)
 Set beam width in degrees.
 
void setBeamWidthRad (double width)
 Set beam width in radians.
 
double getBeamPowerDeg (double d) const
 Gaussian beam power.
 
double getBeamPowerRad (double d) const
 Gaussian beam power.
 

Protected Attributes

double width
 Beam width in degrees.
 
double scaledCoeff
 Beam width (degrees) squared.
 

Static Protected Attributes

static const double coeff = 4.0 * log(sqrt(2.0))
 Coeff for getBeamPowerDeg()
 

Member Function Documentation

◆ getBeamPowerDeg()

double getBeamPowerDeg ( double  d) const

Gaussian beam power.

Given deviation from beam in degrees, return relative (normalized) beam power.

Parameters
d- deviation from beam center in degrees
Returns
relative (normalized) beam power: 0 in the center (d=0.0) and 0.5 when d = +/-0.5*width

◆ getBeamPowerRad()

double getBeamPowerRad ( double  d) const
inline

Gaussian beam power.

Parameters
d- deviation from beam center in radians
Returns
relative (normalized) beam power

Member Data Documentation

◆ coeff

const double coeff = 4.0 * log(sqrt(2.0))
staticprotected

Coeff for getBeamPowerDeg()

Fuzzy alternatives for fast computation. Note: seldom needed, unless computed in the innermost loop.


The documentation for this class was generated from the following files: