Mantid
Loading...
Searching...
No Matches
AngleUnits.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2011 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9#include "MantidGeometry/DllConfig.h"
11#include <cmath>
12
13namespace Mantid {
14namespace Geometry {
20constexpr double deg2rad = M_PI / 180.;
21
23constexpr double rad2deg = 180. / M_PI;
24
27} // namespace Geometry
28} // namespace Mantid
constexpr double deg2rad
Defines units/enum for Crystal work.
Definition: AngleUnits.h:20
constexpr double rad2deg
Radians to degrees conversion factor.
Definition: AngleUnits.h:23
AngleUnits
Flag for angle units used in UnitCell class.
Definition: AngleUnits.h:26
Helper class which provides the Collimation Length for SANS instruments.