|
rl_raylib
1.1.10
|
A Plain Ol' Data struct (POD) encapsulating the OSAC-style complex polarization amplitudes. More...
#include <rl_Polarization.h>
Public Member Functions | |
| void | init (double b_over_a=1.0, double psi=0.0) |
| Initialization method. More... | |
| void | attenuate (double factor) |
| Attenuate intensity by a factor. More... | |
| double | intensity () const |
| Evaluate the intensity. More... | |
| std::ostream & | print_on (std::ostream &os) const |
| Write the polarization amplitude to stream os. More... | |
| void | cprint_on (FILE *of) const |
| Write the polarization amplitude to FILE* of. More... | |
Public Attributes | |
| rl_Traits::complex | c2_ [2] |
| polarization amplitude (cosine component) | |
| rl_Traits::complex | s2_ [2] |
| polarization amplitude (sine component) | |
A Plain Ol' Data struct (POD) encapsulating the OSAC-style complex polarization amplitudes.
This is a utility POD to simplify communication with BPipe.
Relation to OSAC polarization amplitudes:

For random polarization:
or
For discrete polarization:
or
where the
superscript denotes a complex conjugate.
Definition at line 106 of file rl_Polarization.h.
| void rl_PolCSPOD::attenuate | ( | double | factor | ) |
Attenuate intensity by a factor.
| factor | the attenuation factor; the ray intensity is multiplied by factor. |
Definition at line 121 of file rl_Polarization.cc.
| void rl_PolCSPOD::cprint_on | ( | FILE * | of | ) | const |
Write the polarization amplitude to FILE* of.
The state is written out as "[(r,i)(r,i)]\n[(r,i)(r,i)]".
| of | output FILE*. |
Definition at line 149 of file rl_Polarization.cc.
| void rl_PolCSPOD::init | ( | double | b_over_a = 1.0, |
| double | psi = 0.0 |
||
| ) |
Initialization method.
| b_over_a | ratio of semiminor axis to semi-major axis. |
| psi | angle of the major axis from the +X axis, with psi increasing towards +Y |
Definition at line 76 of file rl_Polarization.cc.
| double rl_PolCSPOD::intensity | ( | ) | const |
Evaluate the intensity.
. Definition at line 99 of file rl_Polarization.cc.
| std::ostream & rl_PolCSPOD::print_on | ( | std::ostream & | os | ) | const |
Write the polarization amplitude to stream os.
The state is written out as "[(r,i)(r,i)][(r,i)(r,i)]".
| os | output stream. |
Definition at line 135 of file rl_Polarization.cc.