General Purpose Geodetic Library
SgMathSupport.h File Reference
#include <math.h>

Go to the source code of this file.

Macros

#define RAD2DEG   (180.0/M_PI)
 < radians to degrees: More...
 
#define RAD2HR   (12.0 /M_PI)
 degrees to radians: More...
 
#define DEG2RAD   (M_PI/180.0)
 hours to radians: More...
 
#define HR2RAD   (M_PI/ 12.0)
 arc seconds to radians: More...
 
#define SEC2RAD   (DEG2RAD/3600.0)
 radians to arc seconds: More...
 
#define RAD2SEC   (RAD2DEG*3600.0)
 seconds in one day: More...
 
#define DAY2SEC   (86400.0)
 radians to mas: More...
 
#define RAD2MAS   (RAD2SEC*1000.0)
 radians to ms: More...
 
#define RAD2MS   (RAD2HR*3600.0*1000.0)
 

Enumerations

enum  DIRECTION {
  X_AXIS =0 , VERTICAL =0 , Y_AXIS =1 , EAST =1 ,
  Z_AXIS =2 , NORTH =2
}
 

Functions

double signum (const double x)
 
double cpsign (const double a1, const double a2)
 
void swap (double &a1, double &a2)
 
void fft (double *x, double *y, int n, int dir)
 

Variables

const Sg3dVector v3Zero
 
const Sg3dVector v3Unit
 
const Sg3dMatrix m3E
 
const Sg3dMatrix m3Zero
 

Macro Definition Documentation

◆ DAY2SEC

#define DAY2SEC   (86400.0)

radians to mas:

Definition at line 58 of file SgMathSupport.h.

◆ DEG2RAD

#define DEG2RAD   (M_PI/180.0)

hours to radians:

Definition at line 42 of file SgMathSupport.h.

◆ HR2RAD

#define HR2RAD   (M_PI/ 12.0)

arc seconds to radians:

Definition at line 46 of file SgMathSupport.h.

◆ RAD2DEG

#define RAD2DEG   (180.0/M_PI)

< radians to degrees:

radians to hours:

Definition at line 34 of file SgMathSupport.h.

◆ RAD2HR

#define RAD2HR   (12.0 /M_PI)

degrees to radians:

Definition at line 38 of file SgMathSupport.h.

◆ RAD2MAS

#define RAD2MAS   (RAD2SEC*1000.0)

radians to ms:

Definition at line 62 of file SgMathSupport.h.

◆ RAD2MS

#define RAD2MS   (RAD2HR*3600.0*1000.0)

Definition at line 64 of file SgMathSupport.h.

◆ RAD2SEC

#define RAD2SEC   (RAD2DEG*3600.0)

seconds in one day:

Definition at line 54 of file SgMathSupport.h.

◆ SEC2RAD

#define SEC2RAD   (DEG2RAD/3600.0)

radians to arc seconds:

Definition at line 50 of file SgMathSupport.h.

Enumeration Type Documentation

◆ DIRECTION

enum DIRECTION
Enumerator
X_AXIS 
VERTICAL 
Y_AXIS 
EAST 
Z_AXIS 
NORTH 

Definition at line 68 of file SgMathSupport.h.

Function Documentation

◆ cpsign()

double cpsign ( const double  a1,
const double  a2 
)
inline

Definition at line 72 of file SgMathSupport.h.

References signum().

◆ fft()

void fft ( double *  x,
double *  y,
int  n,
int  dir 
)

Definition at line 82 of file SgMathSupport.cpp.

◆ signum()

◆ swap()

void swap ( double &  a1,
double &  a2 
)
inline

Definition at line 73 of file SgMathSupport.h.

Variable Documentation

◆ m3E

const Sg3dMatrix m3E
extern

◆ m3Zero

const Sg3dMatrix m3Zero
extern

◆ v3Unit

const Sg3dVector v3Unit
extern

◆ v3Zero

const Sg3dVector v3Zero
extern