Home
Install
Use
Develop
Support
News
Credits
hosted by
|
15#include "Conventions.h"
46 Vector<3,U> get_in ( const Vector<3,U>& vect) const { return into * vect; }
50 Vector<3,U> get_out ( const Vector<3,U>& vect) const { return outof * vect; }
67 Matrix<3, 3, T> outof;
75 orientation = _orientation;
76 ellipticity = _ellipticity;
78 double cos_2o = cos (2.0*orientation);
79 double sin_2o = sin (2.0*orientation);
80 double cos_2e = cos (2.0*ellipticity);
81 double sin_2e = sin (2.0*ellipticity);
83 into[0] = Vector<3,T> (cos_2o*cos_2e, sin_2o, -cos_2o*sin_2e);
84 into[1] = Vector<3,T> (-sin_2o*cos_2e, cos_2o, sin_2o*sin_2e);
87 basis = Signal::Elliptical;
89 outof = transpose (into);
108 case Signal::Circular:
112 orientation = 0.25*M_PI;
113 ellipticity = 0.25*M_PI;
117 throw std::runtime_error ( "Basis::set_basis unrecognized basis");
121 outof = transpose (into);
Vector< 3, U > get_out(const Vector< 3, U > &vect) const
Matrix< 3, 3, T > into Definition Basis.h:64
Signal::Basis basis Definition Basis.h:55
double ellipticity Definition Basis.h:61
double get_orientation() const
void set_basis(Signal::Basis basis) Definition Basis.h:94
double orientation Definition Basis.h:58
Vector< 3, T > get_basis_vector(unsigned iaxis) const
Vector< 3, U > get_in(const Vector< 3, U > &vect) const
Signal::Basis get_basis() const
Matrix< 3, 3, T > outof Definition Basis.h:67
double get_ellipticity() const
static const Vector basis(unsigned i)
Basis The basis in which the electric field is represented. Definition Conventions.h:19
Generated using doxygen 1.14.0
|