Changeset 41858
- Timestamp:
- Oct 23, 2021, 3:34:02 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroLoadGlints.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroLoadGlints.c
r41809 r41858 274 274 275 275 //now calculate the proper x-coord positions given the angle, for this chip 276 double xcFPA0, xcFPA1, angle, chip_angle, glint_length; 276 double xcFPA0 = 0.0, xcFPA1 = 0.0; 277 double angle = 0.0, chip_angle = 0.0, glint_length = 0.0; 277 278 angle = atan2(xFPA1 - xFPA0,yFPA1 - yFPA0); 278 279 xcFPA0 = xFPA0 + (ycFPA0-yFPA0)*tan(angle); … … 435 436 436 437 //now calculate the proper x-coord positions given the angle, for this chip 437 double ycFPA0, ycFPA1, angle, chip_angle, glint_length; 438 double ycFPA0 = 0.0, ycFPA1 = 0.0; 439 double glint_length = 0.0, angle = 0.0, chip_angle = 0.0; 438 440 angle = atan2(xFPA1 - xFPA0,yFPA1 - yFPA0); 439 441 ycFPA0 = yFPA0 + (xcFPA0-xFPA0)/tan(angle);
Note:
See TracChangeset
for help on using the changeset viewer.
