IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 2, 2008, 8:08:31 AM (18 years ago)
Author:
eugene
Message:

replace poor code with ohana_normalize_angle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/dvo/skycat.c

    r13479 r19823  
    110110int RD_to_XYpic (double *x, double *y, double r, double d, Coords *coords, double Rmin, double Rmax, double Rmid, int *leftside) {
    111111
    112   while (r < Rmin) { r += 360.0; }
    113   while (r > Rmax) { r -= 360.0; }
     112  r = ohana_normalize_angle (r);
    114113
    115114  if (*leftside == -1) {
Note: See TracChangeset for help on using the changeset viewer.