BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
anonymous_namespace{SimpleUnitConverters.cpp} Namespace Reference

Functions

double getQ (double wavelength, double angle)
 

Function Documentation

◆ getQ()

double anonymous_namespace{SimpleUnitConverters.cpp}::getQ ( double  wavelength,
double  angle 
)

Definition at line 30 of file SimpleUnitConverters.cpp.

31 {
32  return 4.0 * M_PI * std::sin(angle) / wavelength;
33 }
#define M_PI
Definition: MathConstants.h:39

References M_PI, and anonymous_namespace{SlicedCylindersBuilder.cpp}::wavelength().

Referenced by DepthProbeConverter::calculateValue().

Here is the call graph for this function: