IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 6, 2004, 2:06:06 PM (22 years ago)
Author:
desonia
Message:

another attempt to get astyle to get it right.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astronomy/psCoord.h

    r1393 r1407  
     1
    12/** @file  psCoord.h
    23*
     
    1011*  @author George Gusciora, MHPCC
    1112*
    12 *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2004-08-05 19:38:51 $
     13*  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
     14*  @date $Date: 2004-08-07 00:06:06 $
    1415*
    1516*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
    1617*/
    1718
    18 # ifndef PS_COORD_H
    19 # define PS_COORD_H
    20 
    21 #include "psType.h"
    22 #include "psImage.h"
    23 #include "psArray.h"
    24 #include "psList.h"
    25 #include "psFunctions.h"
    26 #include "psTime.h"
     19#ifndef PS_COORD_H
     20#    define PS_COORD_H
     21
     22#    include "psType.h"
     23#    include "psImage.h"
     24#    include "psArray.h"
     25#    include "psList.h"
     26#    include "psFunctions.h"
     27#    include "psTime.h"
    2728
    2829/// @addtogroup CoordinateTransform
     
    3839typedef struct
    3940{
    40     double x;      ///< x position
    41     double y;      ///< y position
    42     double xErr;   ///< Error in x position
    43     double yErr;   ///< Error in y position
     41    double x;                   // /< x position
     42    double y;                   // /< y position
     43    double xErr;                // /< Error in x position
     44    double yErr;                // /< Error in y position
    4445}
    4546psPlane;
     
    5455typedef struct
    5556{
    56     double r;      ///< RA
    57     double d;      ///< Dec
    58     double rErr;   ///< Error in RA
    59     double dErr;   ///< Error in Dec
     57    double r;                   // /< RA
     58    double d;                   // /< Dec
     59    double rErr;                // /< Error in RA
     60    double dErr;                // /< Error in Dec
    6061}
    6162psSphere;
     
    7172typedef struct
    7273{
    73     psDPolynomial2D *x;                ///< 2D polynomial transform of X coordinates
    74     psDPolynomial2D *y;                ///< 2D polynomial transform of Y coordinates
     74    psDPolynomial2D *x;         // /< 2D polynomial transform of X coordinates
     75    psDPolynomial2D *y;         // /< 2D polynomial transform of Y coordinates
    7576}
    7677psPlaneTransform;
     
    9091typedef struct
    9192{
    92     psDPolynomial4D *x;                ///< 4D polynomial transform of X coordinates
    93     psDPolynomial4D *y;                ///< 4D polynomial transform of Y coordinates
     93    psDPolynomial4D *x;         // /< 4D polynomial transform of X coordinates
     94    psDPolynomial4D *y;         // /< 4D polynomial transform of Y coordinates
    9495}
    9596psPlaneDistort;
     
    107108typedef struct
    108109{
    109     double sinPhi;                    ///< sin of North Pole lattitude
    110     double cosPhi;                    ///< cos of North Pole lattitude
    111     double Xo;                        ///< First PT of Ares lon
    112     double xo;                        ///< First PT of Ares equiv lon
     110    double sinPhi;              // /< sin of North Pole lattitude
     111    double cosPhi;              // /< cos of North Pole lattitude
     112    double Xo;                  // /< First PT of Ares lon
     113    double xo;                  // /< First PT of Ares equiv lon
    113114}
    114115psSphereTransform;
     
    120121 */
    121122typedef enum {
    122     PS_PROJ_TAN,        ///< Tangent projection
    123     PS_PROJ_SIN,        ///< Sine projection
    124     PS_PROJ_AIT,        ///< Aitoff projection
    125     PS_PROJ_PAR,        ///< Par projection
    126     PS_PROJ_GLS,        ///< GLS projection
    127     PS_PROJ_CAR,        ///< CAR projection
    128     PS_PROJ_MER,        ///< MER projection
    129     PS_PROJ_NTYPE      ///< Number of types; must be last.
     123    PS_PROJ_TAN,                // /< Tangent projection
     124    PS_PROJ_SIN,                // /< Sine projection
     125    PS_PROJ_AIT,                // /< Aitoff projection
     126    PS_PROJ_PAR,                // /< Par projection
     127    PS_PROJ_GLS,                // /< GLS projection
     128    PS_PROJ_CAR,                // /< CAR projection
     129    PS_PROJ_MER,                // /< MER projection
     130    PS_PROJ_NTYPE               // /< Number of types; must be last.
    130131} psProjectionType;
    131132
     
    137138typedef struct
    138139{
    139     double R;     ///< Coordinates of projection center
    140     double D;     ///< Coordinates of projection center
    141     double Xs;    ///< plate-scale in X direction
    142     double Ys;    ///< plate-scale in Y direction
    143     psProjectionType type;  ///< Projection type
     140    double R;                   // /< Coordinates of projection center
     141    double D;                   // /< Coordinates of projection center
     142    double Xs;                  // /< plate-scale in X direction
     143    double Ys;                  // /< plate-scale in Y direction
     144    psProjectionType type;      // /< Projection type
    144145}
    145146psProjection;
     
    151152 */
    152153typedef enum {
    153     PS_SPHERICAL,                      ///< offset corresponds to an angular offset
    154     PS_LINEAR                          ///< offset corresponds to a linear offset
     154    PS_SPHERICAL,               // /< offset corresponds to an angular offset
     155    PS_LINEAR                   // /< offset corresponds to a linear offset
    155156} psSphereOffsetMode;
    156157
     
    161162 */
    162163typedef enum {
    163     PS_ARCSEC,                         ///< Arcseconds
    164     PS_ARCMIN,                         ///< Arcminutes
    165     PS_DEGREE,                         ///< Degrees
    166     PS_RADIAN                          ///< Radians
     164    PS_ARCSEC,                  // /< Arcseconds
     165    PS_ARCMIN,                  // /< Arcminutes
     166    PS_DEGREE,                  // /< Degrees
     167    PS_RADIAN                   // /< Radians
    167168} psSphereOffsetUnit;
    168169
     
    170171 *
    171172 */
    172 psPlane *psPlaneTransformApply(
    173     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 );
     173psPlane *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                              );
    177177
    178178/** Applies the psPlaneDistort transform to a specified coordinate
    179179 *
    180180 */
    181 psPlane *psPlaneDistortApply(
    182     psPlane *out,                      ///< a psPlane to recycle.  If NULL, a new one is generated.
    183     const psPlaneDistort *transform,   ///< the transform to apply
    184     const psPlane *coords,             ///< the coordinate to apply the transform above.
    185     float term3,                       ///< third term -- maybe magnitude
    186     float term4                        ///< forth term -- maybe color
    187 );
     181psPlane *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                            );
    188187
    189188/** Allocator for psSphereTransform
    190189 *
    191190 */
    192 psSphereTransform *psSphereTransformAlloc(
    193     double NPlat,                      ///< north pole latitude
    194     double Xo,                         ///< First PT of Ares lon
    195     double xo                          ///< First PT of Ares equiv lon
    196 );
    197 
     191psSphereTransform *psSphereTransformAlloc(double NPlat, // /< north pole latitude
     192        double Xo,    // /< First PT of Ares lon
     193        double xo     // /< First PT of Ares equiv lon
     194                                         );
    198195
    199196/** Applies the psSphereTransform transform for a specified coordinate
    200197 *
    201198 */
    202 psSphere *psSphereTransformApply(
    203     psSphere *out,                     ///< a psSphere to recycle.  If NULL, a new one is generated.
    204     const psSphereTransform *transform,///< the transform to apply
    205     const psSphere *coord              ///< the coordinate to apply the transform above.x
    206 );
    207 
    208 psSphereTransform *psSphereTransformICRStoEcliptic(
    209     psTime time
    210 );
    211 
    212 psSphereTransform *psSphereTransformEcliptictoICRS(
    213     psTime time
    214 );
    215 
    216 psSphereTransform *psSphereTransformICRStoGalatic( void );
    217 
    218 psSphereTransform *psSphereTransformGalatictoICRS( void );
    219 
    220 psPlane *psProject(
    221     const psSphere *coord,
    222     const psProjection *projection
    223 );
    224 
    225 psSphere *psDeproject(
    226     const psPlane *coord,
    227     const psProjection *projection
    228 );
    229 
    230 psSphere *psSphereGetOffset(
    231     const psSphere *restrict position1,
    232     const psSphere *restrict position2,
    233     psSphereOffsetMode mode,
    234     psSphereOffsetUnit unit
    235 );
    236 
    237 psSphere *psSphereSetOffset(
    238     const psSphere *restrict position,
    239     const psSphere *restrict offset,
    240     psSphereOffsetMode mode,
    241     psSphereOffsetUnit unit
    242 );
     199psSphere *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
     205psSphereTransform *psSphereTransformICRStoEcliptic(psTime time);
     206
     207psSphereTransform *psSphereTransformEcliptictoICRS(psTime time);
     208
     209psSphereTransform *psSphereTransformICRStoGalatic(void);
     210
     211psSphereTransform *psSphereTransformGalatictoICRS(void);
     212
     213psPlane *psProject(const psSphere * coord, const psProjection * projection);
     214
     215psSphere *psDeproject(const psPlane * coord, const psProjection * projection);
     216
     217psSphere *psSphereGetOffset(const psSphere * restrict position1,
     218                            const psSphere * restrict position2,
     219                            psSphereOffsetMode mode, psSphereOffsetUnit unit);
     220
     221psSphere *psSphereSetOffset(const psSphere * restrict position,
     222                            const psSphere * restrict offset,
     223                            psSphereOffsetMode mode, psSphereOffsetUnit unit);
    243224
    244225/// @}
Note: See TracChangeset for help on using the changeset viewer.