Ignore:
Timestamp:
08/30/01 16:02:20 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/gui/MGAccuracy.cc

    r920 r921  
    190190    aaz *= d2r;
    191191
    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);
    197198
    198199    dist *= 3600./d2r;
Note: See TracChangeset for help on using the changeset viewer.