BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
WavevectorInfo.cpp
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Sample/Material/WavevectorInfo.cpp
6 //! @brief Implements 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 
17 
18 // TODO: can be removed when IFormFactor::volume() is refactored
19 // (static function is provided to easily track usage of default constructor)
21 {
22  return {};
23 }
24 
26 {
27  return WavevectorInfo(transform.transformed(m_ki), transform.transformed(m_kf),
29 }
30 
31 // same as GetZeroQ
32 WavevectorInfo::WavevectorInfo() : m_ki(1, 0, 0), m_kf(1, 0, 0), m_vacuum_wavelength(1) {}
Declares class Transform3D.
Defines WavevectorInfo.
Vector transformations in three dimensions.
Definition: Transform3D.h:28
ivector_t transformed(const ivector_t &v) const
Return transformed vector v.
Holds all wavevector information relevant for calculating form factors.
cvector_t m_kf
double m_vacuum_wavelength
cvector_t m_ki
WavevectorInfo transformed(const Transform3D &transform) const
static WavevectorInfo GetZeroQ()