[Positioning] Add PosUtil::rad2deg()
This commit is contained in:
parent
948bd577a2
commit
855291b31d
|
@ -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 *** */
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue