Changeset 1496 for trunk/psLib/src/astro/psCoord.h
- Timestamp:
- Aug 11, 2004, 3:23:20 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/astro/psCoord.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astro/psCoord.h
r1441 r1496 11 11 * @author George Gusciora, MHPCC 12 12 * 13 * @version $Revision: 1.1 3$ $Name: not supported by cvs2svn $14 * @date $Date: 2004-08- 09 23:40:54$13 * @version $Revision: 1.14 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2004-08-12 01:23:20 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 117 117 /** Projection type for projection/deprojection 118 118 * 119 * @see alsopsProject, psDeproject119 * @see psProject, psDeproject 120 120 * 121 121 */ … … 133 133 /** Parameter set for projection/deprojection 134 134 * 135 * @see alsopsProject, psDeproject135 * @see psProject, psDeproject 136 136 * 137 137 */ … … 148 148 /** Mode for Offset calculation between two sky positions 149 149 * 150 * @see alsopsSphereGetOffset, psSphereSetOffset150 * @see psSphereGetOffset, psSphereSetOffset 151 151 * 152 152 */ … … 158 158 /** The units of the offset 159 159 * 160 * @see alsopsSphereGetOffset, psSphereSetOffset160 * @see psSphereGetOffset, psSphereSetOffset 161 161 * 162 162 */ … … 170 170 /** Applies the psPlaneTransform transform to a specified coordinate 171 171 * 172 */ 173 psPlane* psPlaneTransformApply(psPlane* out, ///< a psPlane to recycle. If NULL, a new one is generated. 174 const psPlaneTransform* transform, ///< the transform to apply 175 const psPlane* coords ///< the coordinate to apply the transform above. 176 ); 172 * @return psPlane* resulting coordinate based on transform 173 */ 174 psPlane* psPlaneTransformApply( 175 psPlane* out, ///< a psPlane to recycle. If NULL, a new one is generated. 176 const psPlaneTransform* transform, ///< the transform to apply 177 const psPlane* coords ///< the coordinate to apply the transform above. 178 ); 177 179 178 180 /** Applies the psPlaneDistort transform to a specified coordinate 179 181 * 180 */ 181 psPlane* psPlaneDistortApply(psPlane* out, ///< a psPlane to recycle. If NULL, a new one is generated. 182 const psPlaneDistort* transform, ///< the transform to apply 183 const psPlane* coords, ///< the coordinate to apply the transform above. 184 float term3, ///< third term -- maybe magnitude 185 float term4 ///< forth term -- maybe color 186 ); 182 * @return psPlane* resulting coordinate based on transform 183 */ 184 psPlane* psPlaneDistortApply( 185 psPlane* out, ///< a psPlane to recycle. If NULL, a new one is generated. 186 const psPlaneDistort* transform, ///< the transform to apply 187 const psPlane* coords, ///< the coordinate to apply the transform above. 188 float term3, ///< third term -- maybe magnitude 189 float term4 ///< forth term -- maybe color 190 ); 187 191 188 192 /** Allocator for psSphereTransform 189 193 * 190 */ 191 psSphereTransform* psSphereTransformAlloc(double NPlat, ///< north pole latitude 192 double Xo, ///< First PT of Ares lon 193 double xo ///< First PT of Ares equiv lon 194 ); 194 * @return psSphereTransform* newly allocated struct 195 */ 196 psSphereTransform* psSphereTransformAlloc( 197 double NPlat, ///< north pole latitude 198 double Xo, ///< First PT of Ares lon 199 double xo ///< First PT of Ares equiv lon 200 ); 195 201 196 202 /** Applies the psSphereTransform transform for a specified coordinate 197 203 * 198 */ 199 psSphere* psSphereTransformApply(psSphere* out, ///< a psSphere to recycle. If NULL, a new one is 200 // generated. 201 const psSphereTransform* transform, ///< the transform to apply 202 const psSphere* coord ///< the coordinate to apply the transform above.x 203 ); 204 205 psSphereTransform* psSphereTransformICRStoEcliptic(psTime time); 206 207 psSphereTransform* psSphereTransformEcliptictoICRS(psTime time); 208 204 * @return psSphere* resulting coordinate based on transform 205 */ 206 psSphere* psSphereTransformApply( 207 psSphere* out, ///< a psSphere to recycle. If NULL, a new one is generated. 208 const psSphereTransform* transform,///< the transform to apply 209 const psSphere* coord ///< the coordinate to apply the transform above.x 210 ); 211 212 /** Creates the appropriate transform for converting from ICRS to Ecliptic 213 * coordinate systems. 214 * 215 * @return psSphereTransform* transform for ICRS->Ecliptic coordinate systems 216 */ 217 psSphereTransform* psSphereTransformICRStoEcliptic( 218 psTime time ///< the time for which the resulting transform will be valid 219 ); 220 221 /** Creates the appropriate transform for converting from Ecliptic to ICRS 222 * coordinate systems. 223 * 224 * @return psSphereTransform* transform for Ecliptic->ICRS coordinate systems 225 */ 226 psSphereTransform* psSphereTransformEcliptictoICRS( 227 psTime time ///< the time for which the resulting transform will be valid 228 ); 229 230 /** Creates the appropriate transform for converting from ICRS to Galatic 231 * coordinate systems. 232 * 233 */ 209 234 psSphereTransform* psSphereTransformICRStoGalatic(void); 210 235 236 /** Creates the appropriate transform for converting from Galatic to ICRS 237 * coordinate systems. 238 * 239 */ 211 240 psSphereTransform* psSphereTransformGalatictoICRS(void); 212 241 213 psPlane* psProject(const psSphere* coord, const psProjection* projection); 214 215 psSphere* psDeproject(const psPlane* coord, const psProjection* projection); 216 217 psSphere* psSphereGetOffset(const psSphere* restrict position1, 218 const psSphere* restrict position2, 219 psSphereOffsetMode mode, psSphereOffsetUnit unit); 220 221 psSphere* psSphereSetOffset(const psSphere* restrict position, 222 const psSphere* restrict offset, 223 psSphereOffsetMode mode, psSphereOffsetUnit unit); 242 /** Projects a spherical coordinate to a linear coordinate system 243 * 244 * @return psPlane* projected coordinate 245 */ 246 psPlane* psProject( 247 const psSphere* coord, ///< coordinate to project 248 const psProjection* projection ///< parameters of the projection 249 ); 250 251 /** Reverse projection of a linear coordinate to a spherical coordinate system 252 * 253 * @return psPlane* projected coordinate 254 */ 255 psSphere* psDeproject( 256 const psPlane* coord, ///< coordinate to project 257 const psProjection* projection ///< parameters of the projection 258 ); 259 260 /** Determines the offset (RA,Dec) on the sky between two positions. 261 * 262 * Both an offset mode and an offset unit may be defined. The mode may be 263 * either PS_SPHERICAL, in which case the specified offset corresponds to an 264 * offset in angles, or it may be PS_LINEAR, in which case the offset 265 * corresponds to a linear offset in a local projection. The offset unit may 266 * be in one of PS_ARCSEC, PS_ARCMIN, PS_DEGREE, and PS_RADIAN, which 267 * specifies the units of the offset only. 268 * 269 * @return psSphere* the offset between position1 and position2 270 */ 271 psSphere* psSphereGetOffset( 272 const psSphere* restrict position1, 273 const psSphere* restrict position2, 274 psSphereOffsetMode mode, 275 psSphereOffsetUnit unit 276 ); 277 278 /** Applies the given offset to a coordinate. 279 * 280 * Both an offset mode and an offset unit may be defined. The mode may be 281 * either PS_SPHERICAL, in which case the specified offset corresponds to an 282 * offset in angles, or it may be PS_LINEAR, in which case the offset 283 * corresponds to a linear offset in a local projection. The offset unit may 284 * be in one of PS_ARCSEC, PS_ARCMIN, PS_DEGREE, and PS_RADIAN, which 285 * specifies the units of the offset only. 286 * 287 * @return psSphere* the given position with the given offset applied. 288 */ 289 psSphere* psSphereSetOffset( 290 const psSphere* restrict position, 291 const psSphere* restrict offset, 292 psSphereOffsetMode mode, 293 psSphereOffsetUnit unit 294 ); 224 295 225 296 /// @}
Note:
See TracChangeset
for help on using the changeset viewer.
