Changeset 1790 in Sophya for trunk/ArchTOIPipe/ProcWSophya


Ignore:
Timestamp:
Nov 26, 2001, 6:49:42 PM (24 years ago)
Author:
aubourg
Message:

patch pour remise dans bornes a cause de levelS, devrait etre dans CoordToStd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/ProcWSophya/toi2map.cc

    r1789 r1790  
    33//                               Christophe Magneville
    44//                               Reza Ansari
    5 // $Id: toi2map.cc,v 1.17 2001-11-26 16:50:38 aubourg Exp $
     5// $Id: toi2map.cc,v 1.18 2001-11-26 17:49:42 aubourg Exp $
    66
    77#include "machdefs.h"
     
    175175    phi   = coord1 * M_PI/12.;
    176176  }
     177
     178  if (coord2>90) coord2 -= 180;
     179  if (coord2<-90) coord2 += 180;
     180  if (phi<0) phi += 2*M_PI;
     181  if (phi>=2*M_PI) phi -= 2*M_PI;
    177182  theta = (90.-coord2) * M_PI/180.;     
    178183
Note: See TracChangeset for help on using the changeset viewer.