LALSimulation  5.4.0.1-fe68b98
rotation_macros.h File Reference

Go to the source code of this file.

Macros

#define ROTATEZ(angle, vx, vy, vz)
 
#define ROTATEY(angle, vx, vy, vz)
 
#define ROT_HP_HC(hp, hc, omega)
 

Macro Definition Documentation

◆ ROTATEZ

#define ROTATEZ (   angle,
  vx,
  vy,
  vz 
)
Value:
tmp1 = vx*cos(angle) - vy*sin(angle);\
tmp2 = vx*sin(angle) + vy*cos(angle);\
vx = tmp1;\
vy = tmp2
REAL8 tmp1
const double vy
const double vx

Definition at line 6 of file rotation_macros.h.

◆ ROTATEY

#define ROTATEY (   angle,
  vx,
  vy,
  vz 
)
Value:
tmp1 = vx*cos(angle) + vz*sin(angle);\
tmp2 = - vx*sin(angle) + vz*cos(angle);\
vx = tmp1;\
vz = tmp2
const double vz

Definition at line 12 of file rotation_macros.h.

◆ ROT_HP_HC

#define ROT_HP_HC (   hp,
  hc,
  omega 
)
Value:
if ((omega) != 0.0) { \
REAL8 _c = cos(2.0 * omega); \
REAL8 _s = sin(2.0 * omega); \
for (UINT4 _ind = 0; _ind < (hp)->data->length; ++_ind) { \
REAL8 _x = (hp)->data->data[_ind]; \
REAL8 _y = (hc)->data->data[_ind]; \
(hp)->data->data[_ind] = _c * _x + _s * _y; \
(hc)->data->data[_ind] = _c * _y - _s * _x; \
} \
} else ((void)0)
sigmaKerr data[0]
double REAL8
uint32_t UINT4

Definition at line 19 of file rotation_macros.h.