Changeset 921 for trunk/MagicSoft/Cosy/gui/MGAccuracy.cc
- Timestamp:
- 08/30/01 16:02:20 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/gui/MGAccuracy.cc
r920 r921 190 190 aaz *= d2r; 191 191 192 const float dphi2 = aaz/2.; 193 const float cos2 = cos(dphi2)*cos(dphi2); 194 const float sin2 = sin(dphi2)*sin(dphi2); 195 196 float dist = acos(cos(azd)*cos2 - cos(2*pzd+azd)*sin2); 192 const double dphi2 = aaz/2.; 193 const double cos2 = cos(dphi2)*cos(dphi2); 194 const double sin2 = sin(dphi2)*sin(dphi2); 195 const double d = cos(azd)*cos2 - cos(2*pzd+azd)*sin2; 196 197 double dist = acos(d); 197 198 198 199 dist *= 3600./d2r;
Note:
See TracChangeset
for help on using the changeset viewer.