Ignore:
Timestamp:
12/12/01 13:09:24 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy/base
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/base/coord.h

    r921 r1109  
    44#include <math.h>          // floor
    55
    6 #include "slalib/slamac.h" // D2PI
     6/* pi/180:  degrees to radians */
     7const double kDeg2Rad = 0.017453292519943295769236907684886127134428718885417;
     8
     9/* 180/pi:  radians to degrees */
     10const double kRad2Deg = 57.295779513082320876798154814105170332405472466564;
     11
     12/* pi/2:  90 degrees in radians */
     13const double kPiDiv2 = 1.5707963267948966192313216916397514420985846996876;
     14
     15/* 2pi */
     16const double k2Pi = 6.2831853071795864769252867665590057683943387987502;
    717
    818class Deg
     
    1929    double operator()() { return fDeg; }
    2030
    21     operator double() const { return fDeg*D2PI/360.0; }
     31    operator double() const { return fDeg*kDeg2Rad; }
    2232};
    2333
     
    118128inline double Rad2Deg(double rad)
    119129{
    120     return 360.0/D2PI*rad;
     130    return kRad2Deg*rad;
    121131}
    122132
    123133inline double Deg2Rad(double rad)
    124134{
    125     return D2PI/360.0*rad;
     135    return kDeg2Rad*rad;
    126136}
    127137#endif
  • trunk/MagicSoft/Cosy/base/msgqueue.h

    r909 r1109  
    22#define MSGQUEUE_H
    33
    4 #include <pthread.h>
     4#include "threads.h"
    55
    66#define WM_NULL 0x0000
  • trunk/MagicSoft/Cosy/base/timer.h

    r926 r1109  
    22#define TIMER_H
    33
    4 #include <unistd.h> // gettimeofday
     4struct timeval;
    55
    66class Timer
Note: See TracChangeset for help on using the changeset viewer.