BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
WavevectorInfo.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Base/Vector/WavevectorInfo.h
6 //! @brief Defines WavevectorInfo.
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifdef SWIG
16 #error no need to expose this header to Swig
17 #endif
18 
19 #ifndef USER_API
20 #ifndef BORNAGAIN_BASE_VECTOR_WAVEVECTORINFO_H
21 #define BORNAGAIN_BASE_VECTOR_WAVEVECTORINFO_H
22 
23 #include <heinz/Vectors3D.h>
24 
25 class RotMatrix;
26 
27 //! Holds all wavevector information relevant for calculating form factors.
28 
30 public:
31  static WavevectorInfo makeZeroQ();
32  WavevectorInfo(C3 ki, C3 kf, double wavelength);
33  WavevectorInfo(R3 ki, R3 kf, double wavelength);
34 
35  WavevectorInfo transformed(const RotMatrix& transform) const;
36  C3 getKi() const { return m_ki; }
37  C3 getKf() const { return m_kf; }
38  C3 getQ() const { return m_ki - m_kf; }
39  double vacuumLambda() const { return m_vacuum_wavelength; }
40 
41 private:
42  C3 m_ki;
43  C3 m_kf;
45 };
46 
47 #endif // BORNAGAIN_BASE_VECTOR_WAVEVECTORINFO_H
48 #endif // USER_API
Rotation matrix in three dimensions. Represents group SO(3). Internal parameterization based on quate...
Definition: RotMatrix.h:25
Holds all wavevector information relevant for calculating form factors.
C3 getKi() const
double m_vacuum_wavelength
WavevectorInfo(C3 ki, C3 kf, double wavelength)
static WavevectorInfo makeZeroQ()
WavevectorInfo transformed(const RotMatrix &transform) const
C3 getKf() const
double vacuumLambda() const
C3 getQ() const