Changeset 253 for trunk/archive/pslib/include/psPosition.h
- Timestamp:
- Mar 17, 2004, 5:33:48 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/include/psPosition.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/include/psPosition.h
r251 r253 7 7 */ 8 8 9 /*************************************************/ 9 /** A point in 2-D space, with errors. 10 */ 10 11 typedef struct { 11 12 union { 12 13 double x; //!< x position 13 14 double r; //!< x position 14 } 15 } x; 15 16 union { 16 17 double xErr; //!< Error in x position 17 18 double rErr; //!< Error in x position 18 } 19 } dx; 19 20 union { 20 21 double y; //!< y position 21 22 double d; //!< y position 22 } 23 } y; 23 24 union { 24 25 double yErr; //!< Error in y position 25 26 double dErr; //!< Error in y position 26 } 27 } dy; 27 28 } psCoord; 28 29 30 /** A polynomial transformation between coordinate frames. This may be a linear relationship, or may 31 * represent a higher-order transformation. 32 */ 33 typedef struct { 34 psDPolynomial2D *x; 35 psDPolynomial2D *y; 36 } psCoordXform; 37 38 /** The optical distortion terms. The lowest two terms are the x and y axis of the target system. The higher 39 * two terms represent magnitude and color terms. 40 */ 29 41 typedef struct { 30 42 psDPolynomial4D *x; 31 43 psDPolynomial4D *y; 32 44 } psDistortion; 33 34 typedef struct {35 psDPolynomial2D *x;36 psDPolynomial2D *y;37 } psCoordXform;38 45 39 46 psCoord *psCoordXformApply (psCoordXform *frame, psCoord *coords); … … 46 53 47 54 /** Get offset (RA,Dec) on the sky between two positions position1 and position2 may not be identical */ 48 psCoord s*49 psGetOffset(const psCoord s*restrict position1, //!< Position 150 const psCoord s*restrict position2, //!< Position 255 psCoord * 56 psGetOffset(const psCoord *restrict position1, //!< Position 1 57 const psCoord *restrict position2, //!< Position 2 51 58 char *system 52 59 ); 53 60 54 61 /** Apply an offset to a position */ 55 psCoord s*56 psApplyOffset(const psCoord s*restrict position, //!< Position57 const psCoord s*restrict offset, //!< Offset62 psCoord * 63 psApplyOffset(const psCoord *restrict position, //!< Position 64 const psCoord *restrict offset, //!< Offset 58 65 char *system 59 66 ); … … 64 71 65 72 /** Get Sun Position */ 66 psCoord s*73 psCoord * 67 74 psGetSunPos(float mjd //!< MJD to get position for 68 75 ); 69 76 70 77 /** Get Moon position */ 71 psCoord s*78 psCoord * 72 79 psGetMoonPos(float mjd, //!< MJD to get position for 73 80 double latitude, //!< Latitude for apparent position … … 81 88 82 89 /** Get Planet positions */ 83 psCoord s*90 psCoord * 84 91 psGetSolarSystemPos(char *solarSystemObject, //!< Named S.S. object 85 92 float mjd //!< MJD to get position for
Note:
See TracChangeset
for help on using the changeset viewer.
