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

Defines some unit conversion factors and other constants in namespace Units. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Units
 Constants and functions for physical unit conversions.
 

Functions

double Units::deg2rad (double angle)
 
double Units::rad2deg (double angle)
 

Variables

static constexpr double Units::angstrom = 1.e-1 * nanometer
 
static constexpr double Units::deg = (3.1415926535897932 / 180.0) * rad
 
static constexpr double Units::gauss = 1e-4
 
static constexpr double Units::micrometer = 1.e+3 * nanometer
 
static constexpr double Units::millimeter = 1.e+6 * nanometer
 
static constexpr double Units::nanometer = 1.
 Internal unit for lengths. More...
 
static constexpr double Units::nm = nanometer
 
static constexpr double Units::nm2 = nanometer * nanometer
 
static constexpr double Units::rad = 1.
 Radian, internal unit for angles. More...
 
static constexpr double Units::tesla = 1.
 Internal unit for magnetic fields. More...
 

Detailed Description

Defines some unit conversion factors and other constants in namespace Units.

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