[Positioning] Add PosUtil::rad2deg()

This commit is contained in:
Matteo Cypriani 2011-07-13 14:56:06 +02:00
parent 948bd577a2
commit 855291b31d
2 changed files with 18 additions and 0 deletions

View File

@ -5,11 +5,23 @@
#include <owlps.h>
#include <cmath>
using namespace std ;
using std::tr1::unordered_map ;
/* *** Maths *** */
double PosUtil::rad2deg(const double &radians)
{
return radians * (180.0 / M_PI) ;
}
/* *** Measurements *** */

View File

@ -13,6 +13,12 @@ public:
/// The speed of light, in m/s
static const unsigned long LIGHT_SPEED = 299792458 ;
/** @name Maths */
//@{
/// Return the degree value of \em radians
static double rad2deg(const double &radians) ;
//@}
/** @name Measurements */
//@{
/// Mutually completes two Measurement lists with missing APs