IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 22, 2004, 6:37:45 PM (22 years ago)
Author:
Paul Price
Message:

Revised psCoord so that elements are: myCoord->rd.r etc, instead of myCoord->x.r.
i.e. RA and Dec are grouped, x and y are grouped.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/pslib/include/psPosition.h

    r257 r281  
    1111/** A point in 2-D space, with errors.
    1212 */
    13 typedef struct {
    14     union {
    15         double x;                               //!< x position
    16         double r;                               //!< x position
    17     } x;
    18     union {
    19         double xErr;                            //!< Error in x position
    20         double rErr;                            //!< Error in x position
    21     } dx;
    22     union {
    23         double y;                               //!< y position
    24         double d;                               //!< y position
    25     } y;
    26     union {
    27         double yErr;                            //!< Error in y position
    28         double dErr;                            //!< Error in y position
    29     } dy;
     13typedef 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;
    3026} psCoord;
    3127
Note: See TracChangeset for help on using the changeset viewer.