Changeset 1109 for trunk/MagicSoft/Cosy/base
- Timestamp:
- 12/12/01 13:09:24 (23 years ago)
- Location:
- trunk/MagicSoft/Cosy/base
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/base/coord.h
r921 r1109 4 4 #include <math.h> // floor 5 5 6 #include "slalib/slamac.h" // D2PI 6 /* pi/180: degrees to radians */ 7 const double kDeg2Rad = 0.017453292519943295769236907684886127134428718885417; 8 9 /* 180/pi: radians to degrees */ 10 const double kRad2Deg = 57.295779513082320876798154814105170332405472466564; 11 12 /* pi/2: 90 degrees in radians */ 13 const double kPiDiv2 = 1.5707963267948966192313216916397514420985846996876; 14 15 /* 2pi */ 16 const double k2Pi = 6.2831853071795864769252867665590057683943387987502; 7 17 8 18 class Deg … … 19 29 double operator()() { return fDeg; } 20 30 21 operator double() const { return fDeg* D2PI/360.0; }31 operator double() const { return fDeg*kDeg2Rad; } 22 32 }; 23 33 … … 118 128 inline double Rad2Deg(double rad) 119 129 { 120 return 360.0/D2PI*rad;130 return kRad2Deg*rad; 121 131 } 122 132 123 133 inline double Deg2Rad(double rad) 124 134 { 125 return D2PI/360.0*rad;135 return kDeg2Rad*rad; 126 136 } 127 137 #endif -
trunk/MagicSoft/Cosy/base/msgqueue.h
r909 r1109 2 2 #define MSGQUEUE_H 3 3 4 #include <pthread.h>4 #include "threads.h" 5 5 6 6 #define WM_NULL 0x0000 -
trunk/MagicSoft/Cosy/base/timer.h
r926 r1109 2 2 #define TIMER_H 3 3 4 #include <unistd.h> // gettimeofday 4 struct timeval; 5 5 6 6 class Timer
Note:
See TracChangeset
for help on using the changeset viewer.