Changeset 1589
- Timestamp:
- Aug 18, 2004, 6:08:10 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/include/psPosition.h (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/include/psPosition.h
r753 r1589 15 15 PS_PROJ_AIT, ///< Aitoff projection 16 16 PS_PROJ_PAR, ///< Par projection 17 PS_PROJ_GLS, ///< GLS projection18 17 PS_PROJ_NTYPE ///< Number of types; must be last 19 18 } psProjectionType; … … 39 38 */ 40 39 typedef struct { 41 psDPolynomial2D *x; 42 psDPolynomial2D *y; 40 psDPolynomial2D *x; ///< Transformation for x 41 psDPolynomial2D *y; ///< Transformation for y 43 42 } psPlaneTransform; 44 43 … … 47 46 */ 48 47 typedef struct { 49 psDPolynomial4D *x; 50 psDPolynomial4D *y; 48 psDPolynomial4D *x; ///< Transformation for x 49 psDPolynomial4D *y; ///< Transformation for y 51 50 } psPlaneDistort; 52 51 … … 68 67 } psProjection; 69 68 69 typedef enum { 70 PS_SPHERICAL; ///< Offset on a sphere 71 PS_LINEAR; ///< Linear offset 72 } psSphereOffsetMode; 73 74 typedef enum { 75 PS_ARCSEC; ///< Arcseconds 76 PS_ARCMIN; ///< Arcminutes 77 PS_DEGREE; ///< Degrees 78 PS_RADIAN; ///< Radians 79 } psSphereOffsetUnit; 80 70 81 /** Functions **************************************************************/ 71 82 /** \addtogroup AstroGroup Astronomy-Specific Utilities … … 75 86 /** apply the coordinate transformation to the given coordinate */ 76 87 psPlane *psPlaneTransformApply (psPlane *out, ///< Output coordinates, or NULL 77 const psPlaneTransform * frame, ///< coordinate transformation88 const psPlaneTransform *transform, ///< coordinate transformation 78 89 const psPlane *coords) ///< input coordiate 79 90 ; … … 81 92 /** apply the optical distortion to the given coordinate, magnitude, color */ 82 93 psPlane *psPlaneDistortApply (psPlane *out, ///< Output coordinates, or NULL 83 const psPlaneDistort * pattern, ///< optical distortion pattern94 const psPlaneDistort *distort, ///< optical distortion pattern 84 95 const psPlane *coords, ///< input coordinate 85 96 float mag, ///< magnitude of object … … 91 102 /** Constructor */ 92 103 psSphereTransform * 93 psSphereTransformAlloc(double pole1, ///< First location of pole 94 double pole2, ///< Second location of pole 95 double rotation) ///< Rotation between systems 96 ; 97 98 /** Destructor */ 99 void psSphereTransformFree(psSphereTransform *trans) ///< Transform to destroy 104 psSphereTransformAlloc(double NPlon, ///< Longitude in input system of north pole 105 double NPlat, ///< Latitude in input system of north pole 106 double ZP) ///< Zero point (e.g, the first point of Ares) 100 107 ; 101 108 102 109 /** Apply general spherical transformation */ 103 110 psSphere * 104 psSphereTransformApply(const psSphere *coord, ///< Coordinates to convert 105 const psSphereTransform *sys) ///< System to use to convert 111 psSphereTransformApply(psSphere *out, ///< Position to output, or NULL 112 const psSphereTransform *transform ///< transformation to use 113 const psSphere *coord) ///< Coordinates to convert 106 114 ; 107 115 108 116 /** Return transformation structure to convert ICRS to Ecliptic */ 109 psSphereTransform *psSphereTransformI toE(void);117 psSphereTransform *psSphereTransformICRSToEcliptic(void); 110 118 111 119 /** Return transformation structure to convert Ecliptic to ICRS */ 112 psSphereTransform *psSphereTransformE toI(void);120 psSphereTransform *psSphereTransformEclipticToICRS(void); 113 121 114 122 /** Return transformation structure to convert ICRS to Galactic */ 115 psSphereTransform *psSphereTransformI toG(void);123 psSphereTransform *psSphereTransformICRSToGalactic(void); 116 124 117 125 /** Return transformation structure to convert Galactic to ICRS */ 118 psSphereTransform *psSphereTransformG toI(void);126 psSphereTransform *psSphereTransformGalacticToICRS(void); 119 127 120 128 /***********************************************************************************************************/ … … 123 131 /** Project spherical system onto a plane */ 124 132 psPlane * 125 ps CoordProject(const psSphere *coord, ///< Spherical coordinates to project126 const psProjection *projection)///< Projection to use133 psProject(const psSphere *coord, ///< Spherical coordinates to project 134 const psProjection *projection) ///< Projection to use 127 135 ; 128 136 129 137 /** Deproject plane onto spherical system */ 130 138 psSphere * 131 ps CoordDeproject(const psPlane *coord, ///< Plane coordinates to deproject132 const psProjection *projection)///< Projection to use139 psDeproject(const psPlane *coord, ///< Plane coordinates to deproject 140 const psProjection *projection) ///< Projection to use 133 141 ; 134 142 135 143 /** Get offset (RA,Dec) on the sky between two positions position1 and position2 may not be identical */ 136 144 psSphere * 137 psSphereGetOffset(const psSphere *restrict position1, ///< Position 1 138 const psSphere *restrict position2, ///< Position 2 139 const char *type) ///< Type of offset: Spherical/Arcsec, Spherical/Degreees etc 145 psSphereGetOffset(const psSphere *position1, ///< Position 1 146 const psSphere *position2, ///< Position 2 147 psSphereOffsetMode mode, ///< Mode of offset 148 psSphereOffsetUnit unit ///< Units for offset 140 149 ; 141 150 142 151 /** Apply an offset to a position */ 143 152 psSphere * 144 psSphereApplyOffset(const psSphere *restrict position, ///< Position 145 const psSphere *restrict offset, ///< Offset 146 const char *type) ///< Type of offset: Spherical/Arcsec, Spherical/Degreees etc 147 ; 153 psSphereSetOffset(const psSphere *position, ///< Position 154 const psSphere *offset, ///< Offset 155 psSphereOffsetMode mode, ///< Mode of offset 156 psSphereOffsetUnit unit ///< Units of offset 157 ); 158 159 /************************************************************************************************************/ 148 160 149 161 /* Positions of well-known objects */
Note:
See TracChangeset
for help on using the changeset viewer.
