BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
Direction.h File Reference

Defines class Direction. More...

Include dependency graph for Direction.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Direction
 A direction in three-dimensional space. More...
 

Functions

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

Detailed Description

Defines 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.h.

Function Documentation

◆ vecOfLambdaAlphaPhi()

kvector_t 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
kvector_t vector() const
Returns Cartesian 3D vector.
Definition: Direction.cpp:24

References M_TWOPI, and Direction::vector().

Referenced by Bin1DCVector::Bin1DCVector(), Bin1DKVector::Bin1DKVector(), SphericalConverter::calculateValue(), RectangularConverter::calculateValue(), SphericalPixel::getK(), DepthProbeElement::getKi(), and RectangularDetector::indexOfSpecular().

Here is the call graph for this function: