BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Defines some unit conversion factors and other constants in namespace Units. More...
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... | |