Class Basis

template<typename T>
class Basis

Defines the basis in which the electric field is represented.

Public Functions

inline Basis()

Default constructor.

void set_basis(Convention::Basis basis)

set basis to circular or linear

inline Convention::Basis get_basis() const

get the current basis

void set_basis(double orientation, double ellipticity)

set basis to elliptical

Given the orientation and ellipticity in radians, calculate the basis vectors used to convert Stokes parameters to coherency matrix.

inline double get_orientation() const

get the orientation

inline double get_ellipticity() const

get the ellipticity

inline Vector<3, T> get_basis_vector(unsigned iaxis) const

get the basis vector

template<typename U>
inline Vector<3, U> get_in(const Vector<3, U> &vect) const

convert the input vector into the basis

template<typename U>
inline Vector<3, U> get_out(const Vector<3, U> &vect) const

convert the input vector out of the basis