Rotation.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2004 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/MEAL/MEAL/Rotation.h
10 
11 #ifndef __MEAL_Rotation_H
12 #define __MEAL_Rotation_H
13 
14 #include "MEAL/Complex2.h"
15 #include "Vector.h"
16 
17 namespace MEAL {
18 
20 
33  class Rotation : public Complex2
34  {
35 
36  public:
37 
39  Rotation ();
40 
42  Vector<3, double> get_axis () const;
43 
45  double get_phi () const;
46 
48  Vector<3, double> get_vector () const;
49 
50  // ///////////////////////////////////////////////////////////////////
51  //
52  // Function implementation
53  //
54  // ///////////////////////////////////////////////////////////////////
55 
57  std::string get_name () const;
58 
59  protected:
60 
62  void calculate (Jones<double>& result, std::vector<Jones<double> >*);
63 
64  };
65 
66 }
67 
68 #endif
Abstract base class implements parameter storage and access.
Definition: Parameters.h:28
Vector< 3, double > get_vector() const
Get the three free parameters as a vector.
Definition: Rotation.C:45
void set_description(unsigned index, const std::string &description)
Return the description of the specified parameter.
Definition: Parameters.h:83
const ScalarMath sin(const ScalarMath &x)
Return a ScalarMath instance representing sin(x)
Definition: ScalarMath.C:160
const ScalarMath sqrt(const ScalarMath &x)
Return a ScalarMath instance representing x^.5.
Definition: ScalarMath.C:151
std::string get_name() const
Return the name of the class.
Definition: Rotation.C:40
void calculate(Jones< double > &result, std::vector< Jones< double > > *)
Calculate the Jones matrix and its gradient.
Definition: Rotation.C:71
double get_phi() const
Get the rotation angle, phi.
Definition: Rotation.C:64
Namespace in which all modeling and calibration related code is declared.
Definition: ExampleComplex2.h:16
Rotation()
Default constructor.
Definition: Rotation.C:14
const ScalarMath cos(const ScalarMath &x)
Return a ScalarMath instance representing cos(x)
Definition: ScalarMath.C:168
Vector< 3, double > get_axis() const
Get the unit-vector along which the rotation occurs.
Definition: Rotation.C:54
void set_name(unsigned index, const std::string &name)
Return the name of the specified parameter.
Definition: Parameters.h:69

Generated using doxygen 1.8.17