pinocchio  UNKNOWN
math/fwd.hpp
1 //
2 // Copyright (c) 2016,2018 CNRS
3 //
4 // This file is part of Pinocchio
5 // Pinocchio is free software: you can redistribute it
6 // and/or modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation, either version
8 // 3 of the License, or (at your option) any later version.
9 //
10 // Pinocchio is distributed in the hope that it will be
11 // useful, but WITHOUT ANY WARRANTY; without even the implied warranty
12 // of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 // General Lesser Public License for more details. You should have
14 // received a copy of the GNU Lesser General Public License along with
15 // Pinocchio If not, see
16 // <http://www.gnu.org/licenses/>.
17 
18 #ifndef __math_fwd_hpp__
19 #define __math_fwd_hpp__
20 
21 #include <boost/math/constants/constants.hpp>
22 
23 namespace se3
24 {
30  template<typename Scalar>
31  const Scalar PI()
32  { return boost::math::constants::pi<Scalar>(); }
33 
35  const double PId = PI<double>();
36 }
37 
38 
39 #endif //#ifndef __math_fwd_hpp__
const Scalar PI()
Returns the value of PI according to the template parameters Scalar.
Definition: math/fwd.hpp:31
const double PId
The value of PI for double scalar type.
Definition: math/fwd.hpp:35