Changeset 208 in pacpusframework for trunk/include/Pacpus/PacpusTools/geodesie.h


Ignore:
Timestamp:
11/06/13 11:22:15 (11 years ago)
Author:
Marek Kurdej
Message:

Minor: Geodesie.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/Pacpus/PacpusTools/geodesie.h

    r198 r208  
    44// %}
    55/// @file
     6/// @author  Marek Kurdej <firstname.surname@utc.fr>
    67/// @author  Jean Laneurit <firstname.surname@utc.fr>
    78/// @date    April, 2010
     
    1718#include "PacpusToolsConfig.h"
    1819
    19 //#include <boost/math/constants/constants.hpp>
     20#include <boost/math/constants/constants.hpp>
    2021#include <cmath>
    2122#include <iostream>
     
    2526#include <QVector3D>
    2627
    27 namespace Geodesie {
    28 
    29 #ifndef M_PI
    30 #   define M_PI 3.14159265358979323846
    31 #endif
    32 #ifndef M_PI_2
    33 #   define M_PI_2 1.57079632679489661923
    34 #endif
    35 #ifndef M_PI_4
    36 #   define M_PI_4 0.78539816339744830962
    37 #endif
     28namespace Geodesie
     29{
    3830
    3931/// 9x9 matrix ???
     
    10698inline double Deg2Rad(double deg)
    10799{
    108     return deg * M_PI / 180.0;
     100    using namespace ::boost::math::constants;
     101    return deg * pi<double>() / 180.0;
    109102}
    110103
    111104inline double Rad2Deg(double rad)
    112105{
    113     return rad * 180.0 / M_PI;
     106    using namespace ::boost::math::constants;
     107    return rad * 180.0 / pi<double>();
    114108}
    115109
Note: See TracChangeset for help on using the changeset viewer.