Changeset 7787 for trunk/MagicSoft/Cosy/catalog
- Timestamp:
- 07/11/06 20:45:10 (18 years ago)
- Location:
- trunk/MagicSoft/Cosy/catalog
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/catalog/Makefile
r4104 r7787 20 20 # @endcode 21 21 22 INCLUDES = -I. -I.. -I../base -I../slalib 22 INCLUDES = -I. -I.. -I../base -I../slalib -I../mars 23 23 24 24 # @code -
trunk/MagicSoft/Cosy/catalog/StarCatalog.cc
r7773 r7787 169 169 // CalcStars flips the picture in X defaultwise now 170 170 // This defined the box in which stars are really returned 171 int x0 = (768-xc)-box; 172 int x1 = (768-xc)+box; 173 int y0 = yc-box; 174 int y1 = yc+box; 175 176 if (x0< -offset) x0= -offset; 177 if (y0< -offset) y0= -offset; 178 if (x1>fW+offset) x1=fW+offset; 179 if (y1>fH+offset) y1=fH+offset; 171 const int x0 = TMath::Max((768-xc)-box, -offset); 172 const int y0 = TMath::Max(yc-box, -offset); 173 const int x1 = TMath::Min((768-xc)+box, fW+offset); 174 const int y1 = TMath::Min(yc+box, fH+offset); 180 175 181 176 // Align stars into telescope system
Note:
See TracChangeset
for help on using the changeset viewer.