file /home/anarendran/Documents/temp/rivet/include/Rivet/Math/Constants.hh

/home/anarendran/Documents/temp/rivet/include/Rivet/Math/Constants.hh

Namespaces

Name
Rivet

Source code

#ifndef RIVET_MATH_CONSTANTS
#define RIVET_MATH_CONSTANTS

#include "Rivet/Math/MathConstants.hh"
#include "Rivet/Math/Units.hh"

namespace Rivet {

  constexpr double     pi  = M_PI;
  constexpr double  twopi  = 2*pi;
  constexpr double halfpi  = pi/2;
  constexpr double     pi2 = pi*pi;

  constexpr double c_light = 2.99792458e8;

  constexpr double degree = pi / 180.0;

}

#endif

Updated on 2022-08-07 at 20:17:18 +0100