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

Description

A direction in three-dimensional space.

Public Member Functions

 Direction ()
 
 Direction (double alpha, double phi)
 
double alpha () const
 
double phi () const
 
R3 vector () const
 Returns Cartesian 3D vector. More...
 
Direction zReflected () const
 

Constructor & Destructor Documentation

◆ Direction() [1/2]

Direction::Direction ( double  alpha,
double  phi 
)

◆ Direction() [2/2]

Direction::Direction ( )

Member Function Documentation

◆ alpha()

double Direction::alpha ( ) const

◆ phi()

double Direction::phi ( ) const

◆ vector()

R3 Direction::vector ( ) const

Returns Cartesian 3D vector.

◆ zReflected()

Direction Direction::zReflected ( ) const