Changeset 2653 in Sophya for trunk/SophyaExt/XephemAstroLib/misc.c
- Timestamp:
- Mar 7, 2005, 5:47:18 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/XephemAstroLib/misc.c
r2643 r2653 373 373 return; 374 374 375 sA = sin(A); 376 y = sA*sb*sc; 377 x = cb - ca*cc; 378 B = y ? (x ? atan2(y,x) : (y>0 ? PI/2 : -PI/2)) : (x>=0 ? 0 : PI); 375 if (sc < 1e-7) 376 B = cc < 0 ? A : PI-A; 377 else { 378 sA = sin(A); 379 y = sA*sb*sc; 380 x = cb - ca*cc; 381 B = y ? (x ? atan2(y,x) : (y>0 ? PI/2 : -PI/2)) : (x>=0 ? 0 : PI); 382 } 379 383 380 384 *Bp = B; … … 477 481 478 482 /* For RCS Only -- Do Not Edit */ 479 static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: misc.c,v $ $Date: 2005-0 1-17 10:13:05 $ $Revision: 1.4$ $Name: not supported by cvs2svn $"};483 static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: misc.c,v $ $Date: 2005-03-07 16:47:18 $ $Revision: 1.5 $ $Name: not supported by cvs2svn $"};
Note:
See TracChangeset
for help on using the changeset viewer.