106 REAL8 alphaN, deltaN;
107 REAL8 alphaIn, deltaIn;
130 VIx = cos( deltaIn ) * cos( alphaIn ) ;
131 VIy = cos( deltaIn ) * sin( alphaIn );
132 VIz = sin( deltaIn );
136 Xx = -sin( deltaN ) * cos( alphaN ) ;
137 Xy = -sin( deltaN ) * sin( alphaN );
142 Zx = -cos( deltaN ) * cos( alphaN );
143 Zy = -cos( deltaN ) * sin( alphaN );
149 Vx = Xx * VIx + Xy * VIy + Xz * VIz ;
150 Vy = Yx * VIx + Yy * VIy + Yz * VIz ;
151 Vz = Zx * VIx + Zy * VIy + Zz * VIz ;
158 out->alpha = atan2( Vy, Vx );
162 out->delta = asin( Vz );
186 REAL8 alphaN, deltaN;
187 REAL8 alphaIn, deltaIn;
210 VIx = cos( deltaIn ) * cos( alphaIn ) ;
211 VIy = cos( deltaIn ) * sin( alphaIn );
212 VIz = sin( deltaIn );
216 Xx = - cos( alphaN ) * sin( deltaN ) ;
217 Xy = - sin( alphaN );
218 Xz = - cos( alphaN ) * cos( deltaN );
219 Yx = - sin( alphaN ) * sin( deltaN );
221 Yz = - sin( alphaN ) * cos( deltaN ) ;
229 Vx = Xx * VIx + Xy * VIy + Xz * VIz ;
230 Vy = Yx * VIx + Yy * VIy + Yz * VIz ;
231 Vz = Zx * VIx + Zy * VIy + Zz * VIz ;
238 out->alpha = atan2( Vy, Vx );
242 out->delta = asin( Vz );
276 out->radius = 2.0 * tan( mygamma );
310 radius = 2.0 * tan( mygamma );
375 radius = sqrt(
x *
x +
y *
y );
377 out->alpha = atan2(
y,
x );
378 out->delta = 2.0 * atan( 0.5 * ( radius ) ) -
LAL_PI_2;
#define ATTATCHSTATUSPTR(statusptr)
#define ASSERT(assertion, statusptr, code, mesg)
#define DETATCHSTATUSPTR(statusptr)
#define INITSTATUS(statusptr)
#define RETURN(statusptr)
void LALStereoProjectCart(LALStatus *status, REAL8Cart2Coor *out, REAL8UnitPolarCoor *in)
void LALRotatePolarU(LALStatus *status, REAL8UnitPolarCoor *out, REAL8UnitPolarCoor *in, REAL8UnitPolarCoor *par)
void LALStereoProjectPolar(LALStatus *status, REAL8Polar2Coor *out, REAL8UnitPolarCoor *in)
void LALInvRotatePolarU(LALStatus *status, REAL8UnitPolarCoor *out, REAL8UnitPolarCoor *in, REAL8UnitPolarCoor *par)
void LALStereoInvProjectPolar(LALStatus *status, REAL8UnitPolarCoor *out, REAL8Polar2Coor *in)
void LALStereoInvProjectCart(LALStatus *status, REAL8UnitPolarCoor *out, REAL8Cart2Coor *in)
Two dimensional Cartessian coordinates.
Two dimensional polar coordinates.
Polar coordinates of a unitary vector on the sphere.
REAL8 delta
In the interval [ ].