BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
Direction.cpp File Reference

Description

Implements class Direction.

Homepage:\n http://www.bornagainproject.org
License:\n GNU General Public License v3 or higher (see COPYING)
Authors
Scientific Computing Group at MLZ (see CITATION, AUTHORS)

Definition in file Direction.cpp.

Include dependency graph for Direction.cpp:

Go to the source code of this file.

Functions

R3 vecOfLambdaAlphaPhi (double _lambda, double _alpha, double _phi)
 

Function Documentation

◆ vecOfLambdaAlphaPhi()

R3 vecOfLambdaAlphaPhi ( double  _lambda,
double  _alpha,
double  _phi 
)

Definition at line 19 of file Direction.cpp.

20 {
21  return M_TWOPI / _lambda * Direction(_alpha, _phi).vector();
22 }
#define M_TWOPI
Definition: Constants.h:54
A direction in three-dimensional space.
Definition: Direction.h:24
R3 vector() const
Returns Cartesian 3D vector.
Definition: Direction.cpp:24

References M_TWOPI, and Direction::vector().

Referenced by SphericalCoords::calculateValue(), ImageCoords::calculateValue(), SpecularElement::FromAlphaScan(), SphericalPixel::getK(), DepthProbeElement::getKi(), and RectangularDetector::indexOfSpecular().

Here is the call graph for this function: