33 #ifndef DART_MATH_CONSTANTS_HPP_
34 #define DART_MATH_CONSTANTS_HPP_
44 static constexpr T
pi()
45 {
return 3.141592653589793238462643383279502884197169399375105820974944592L; }
46 static constexpr T
two_pi() {
return 2.0 *
pi(); }
51 static constexpr T
phi()
52 {
return 1.618033988749894848204586834365638117720309179805762862135448623L; }
54 static constexpr T
inf() {
return std::numeric_limits<T>::infinity(); }
Definition: BulletCollisionDetector.cpp:63
Definition: Constants.hpp:42
static constexpr T pi()
Definition: Constants.hpp:44
static constexpr T inf()
Definition: Constants.hpp:54
static constexpr T two_pi()
Definition: Constants.hpp:46
static constexpr T half_pi()
Definition: Constants.hpp:47
static constexpr T pi_sqr()
Definition: Constants.hpp:48
static constexpr T phi()
The golden ratio.
Definition: Constants.hpp:51