Changeset 623 for trunk/archive/pslib/include/psPosition.h
- Timestamp:
- May 7, 2004, 4:28:10 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/include/psPosition.h (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/include/psPosition.h
r396 r623 9 9 /** Structures *********************/ 10 10 11 /** A point in 2-D space, with errors. 12 */ 13 typedef union { 14 struct { 15 double x; ///< x position 16 double y; ///< y position 17 double xErr; ///< Error in x position 18 double yErr; ///< Error in y position 19 } xy; 20 struct { 21 double r; ///< RA 22 double d; ///< Dec 23 double rErr; ///< Error in RA 24 double dErr; ///< Error in Dec 25 } rd; 26 } psCoord; 11 /** A point in 2-D space, with errors. */ 12 typedef struct { 13 double x; ///< x position 14 double y; ///< y position 15 double xErr; ///< Error in x position 16 double yErr; ///< Error in y position 17 } psPlaneCoord; 18 19 /** A point on the surface of a sphere, with errors */ 20 typedef struct { 21 double r; ///< RA 22 double d; ///< Dec 23 double rErr; ///< Error in RA 24 double dErr; ///< Error in Dec 25 } psSphereCoord; 27 26 28 27 /** A polynomial transformation between coordinate frames. This may be a linear relationship, or may … … 32 31 psDPolynomial2D *x; 33 32 psDPolynomial2D *y; 34 } ps CoordXform;33 } psPlaneCoordXform; 35 34 36 35 /** The optical distortion terms. The lowest two terms are the x and y axis of the target system. The higher … … 40 39 psDPolynomial4D *x; 41 40 psDPolynomial4D *y; 42 } ps Distortion;41 } psPlaneDistortion; 43 42 44 43 /** Functions **************************************************************/ … … 48 47 49 48 /** apply the coordinate transformation to the given coordinate */ 50 ps Coord *psCoordXformApply (psCoord *out, ///< Output coordinates, or NULL51 const psCoordXform *frame, ///< coordinate transformation52 const psCoord *coords ///< input coordiate49 psPlaneCoord *psPlaneCoordXformApply (psPlaneCoord *out, ///< Output coordinates, or NULL 50 const psPlaneCoordXform *frame, ///< coordinate transformation 51 const psPlaneCoord *coords ///< input coordiate 53 52 ); 54 53 55 54 /** apply the optical distortion to the given coordinate, magnitude, color */ 56 ps Coord *psDistortionApply (psCoord *out, ///< Output coordinates, or NULL57 const psDistortion *pattern, ///< optical distortion pattern58 const psCoord *coords, ///< input coordinate59 float mag,///< magnitude of object60 float color ///< color of object55 psPlaneCoord *psPlaneDistortionApply (psPlaneCoord *out, ///< Output coordinates, or NULL 56 const psPlaneDistortion *pattern, ///< optical distortion pattern 57 const psPlaneCoord *coords, ///< input coordinate 58 float mag, ///< magnitude of object 59 float color ///< color of object 61 60 ); 62 61 63 62 /** Get offset (RA,Dec) on the sky between two positions position1 and position2 may not be identical */ 64 ps Coord *65 psGetOffset(const ps Coord *restrict position1, ///< Position 166 const ps Coord *restrict position2, ///< Position 263 psSphereCoord * 64 psGetOffset(const psSphereCoord *restrict position1, ///< Position 1 65 const psSphereCoord *restrict position2, ///< Position 2 67 66 const char *type ///< Type of offset: Linear, Spherical/Arcsec, Spherical/Degreees etc 68 67 ); 69 68 70 69 /** Apply an offset to a position */ 71 ps Coord *72 psApplyOffset(const ps Coord *restrict position, ///< Position73 const ps Coord *restrict offset, ///< Offset70 psSphereCoord * 71 psApplyOffset(const psSphereCoord *restrict position, ///< Position 72 const psSphereCoord *restrict offset, ///< Offset 74 73 const char *type ///< Type of offset: Linear, Spherical/Arcsec, Spherical/Degreees etc 75 74 ); … … 78 77 79 78 /** Get Sun Position */ 80 ps Coord *79 psSphereCoord * 81 80 psGetSunPos(float mjd ///< MJD to get position for 82 81 ); 83 82 84 83 /** Get Moon position */ 85 ps Coord *84 psSphereCoord * 86 85 psGetMoonPos(float mjd, ///< MJD to get position for 87 86 double latitude, ///< Latitude for apparent position … … 95 94 96 95 /** Get Planet positions */ 97 ps Coord *96 psSphereCoord * 98 97 psGetSolarSystemPos(const char *solarSystemObject, ///< Named S.S. object 99 98 float mjd ///< MJD to get position for … … 105 104 106 105 /** Convert ICRS to Ecliptic */ 107 ps Coord *108 psCoordinatesItoE(const ps Coord *restrict coordinates ///< ICRS coordinates to convert106 psSphereCoord * 107 psCoordinatesItoE(const psSphereCoord *restrict coordinates ///< ICRS coordinates to convert 109 108 ); 110 109 111 110 /** Convert Ecliptic to ICRS */ 112 ps Coord *113 psCoordinatesEtoI(const ps Coord *restrict coordinates ///< Ecliptic coordinates to convert111 psSphereCoord * 112 psCoordinatesEtoI(const psSphereCoord *restrict coordinates ///< Ecliptic coordinates to convert 114 113 ); 115 114 116 115 /** Convert ICRS to Galactic */ 117 ps Coord *118 psCoordinatesItoG(const ps Coord *restrict coordinates ///< ICRS coordinates to convert116 psSphereCoord * 117 psCoordinatesItoG(const psSphereCoord *restrict coordinates ///< ICRS coordinates to convert 119 118 ); 120 119 121 120 /** Convert Galactic to ICRS */ 122 ps Coord *123 psCoordinatesGtoI(const ps Coord *restrict coordinates ///< Galactic coordinates to convert121 psSphereCoord * 122 psCoordinatesGtoI(const psSphereCoord *restrict coordinates ///< Galactic coordinates to convert 124 123 ); 125 124
Note:
See TracChangeset
for help on using the changeset viewer.
