Skip to content
Snippets Groups Projects
Commit 1c2afe99 authored by Antti Soininen's avatar Antti Soininen
Browse files

Fix build. Change Geometry::deg2rad etc. const -> constexpr Re #22723

parent 034ea1dd
No related branches found
No related tags found
No related merge requests found
......@@ -33,10 +33,10 @@ namespace Geometry {
*/
/// Degrees to radians conversion factor
const double deg2rad = M_PI / 180.;
constexpr double deg2rad = M_PI / 180.;
/// Radians to degrees conversion factor
const double rad2deg = 180. / M_PI;
constexpr double rad2deg = 180. / M_PI;
/// Flag for angle units used in UnitCell class
enum AngleUnits { angDegrees, angRadians };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment