37 #ifndef FCL_MATH_CONSTANTS_ 38 #define FCL_MATH_CONSTANTS_ 57 typedef typename S::Real
type;
128 template <
typename S>
134 static constexpr S
pi() {
return S(3.141592653589793238462643383279502884197169399375105820974944592L); }
137 static constexpr S
phi() {
return S(1.618033988749894848204586834365638117720309179805762862135448623L); }
146 static const Real value = eps_78();
151 static constexpr Real
eps() {
152 static_assert(std::is_floating_point<Real>::value,
153 "Constants can only be evaluated for scalars with floating " 154 "point implementations");
165 static const Real value = std::pow(eps(), 7./8.);
171 static const Real value = std::pow(eps(), 3./4.);
177 static const Real value = std::pow(eps(), 1./2.);
static Real eps_34()
Returns ε^(3/4) for the precision of the underlying scalar type.
static Real eps_78()
Returns ε^(7/8) for the precision of the underlying scalar type.
static constexpr Real eps()
Returns ε for the precision of the underlying scalar type.
detail::ScalarTrait< S >::type Real
static constexpr S pi()
The mathematical constant pi.
static constexpr S phi()
The golden ratio.
static Real gjk_default_tolerance()
static Real eps_12()
Returns ε^(1/2) for the precision of the underlying scalar type.