Ignore:
Timestamp:
Mar 7, 2005, 5:47:18 PM (21 years ago)
Author:
cmv
Message:

update xephem 3.6.4 cmv 07/03/2005

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaExt/XephemAstroLib/misc.c

    r2643 r2653  
    373373            return;
    374374
    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        }
    379383
    380384        *Bp = B;
     
    477481
    478482/* For RCS Only -- Do Not Edit */
    479 static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: misc.c,v $ $Date: 2005-01-17 10:13:05 $ $Revision: 1.4 $ $Name: not supported by cvs2svn $"};
     483static 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.