COSMOS core  1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
math/constants.h File Reference
#include "support/configCosmos.h"
#include <cstdint>
Include dependency graph for math/constants.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define RADOF(deg)   static_cast <double>(DTOR * (deg))
 Radians of a Degree value. More...
 
#define DEG2RAD(deg)   static_cast <double>(DTOR * (deg))
 Radians of a Degree value. More...
 
#define DEGOF(rad)   static_cast <double>(RTOD * (rad))
 Degrees of a Radian value. More...
 
#define RAD2DEG(rad)   (double)(RTOD * (rad))
 Degrees of a Radian value. More...
 
#define DIRECTION_ROW   0
 
#define DIRECTION_COLUMN   1
 
#define ESTIMATOR_SIZE   5
 

Enumerations

enum  ByteOrder : std::uint8_t {
  ByteOrder::BIGENDIAN =0, ByteOrder::PPC =ByteOrder::BIGENDIAN, ByteOrder::MOTOROLA =ByteOrder::BIGENDIAN, ByteOrder::LITTLEENDIAN =1,
  ByteOrder::INTEL =ByteOrder::LITTLEENDIAN, ByteOrder::NETWORK =ByteOrder::BIGENDIAN
}
 Enumeration of possible byte orders. More...
 

Variables

const double PI =3.1415926535897932384626433832795028841971693993751
 PI. More...
 
const double DPI =3.1415926535897932384626433832795028841971693993751
 Double precision PI. More...
 
const double D2PI =6.2831853071795864769252867665590057683943387987502
 Double precision 2*PI. More...
 
const double DPI2 =1.5707963267948966192313216916397514420985846996876
 Double precision PI/2. More...
 
const double DS2R =7.2722052166430399038487115353692196393452995355905e-5
 Multiplicand for Seconds of Time to Radians. More...
 
const double DAS2R =4.8481368110953599358991410235794797595635330237270e-6
 Multiplicand for Seconds of Arc to Radians. More...
 
const double DTOR =static_cast <double>(DPI / 180.)
 Multiplicand for Degrees to Radians. More...
 
const double RTOD =static_cast <double>(180. / DPI)
 Multiplicand for Radians to Degrees. More...
 
const double O_UNDEFINED =999999.1
 
const double O_INFINITE =10000000000000000000000000.9
 
const double O_SMALL =0.00000001
 
const double D_SMALL =static_cast <double>(1e-76)