Changeset 16935 for trunk/Ohana/src/opihi/include/astro.h
- Timestamp:
- Mar 11, 2008, 11:11:54 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/include/astro.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/include/astro.h
r4689 r16935 11 11 void InitAstro (); 12 12 13 typedef struct { 14 int isIdentity; // identity transformation 15 double phi; // saved in radians 16 double Xo; // saved in radians 17 double xo; // saved in degrees 18 double sin_phi_cos_Xo; // pre-computed values 19 double sin_phi_sin_Xo; // pre-computed values 20 double cos_phi_cos_Xo; // pre-computed values 21 double cos_phi_sin_Xo; // pre-computed values 22 double cos_phi; // pre-computed values 23 double sin_phi; // pre-computed values 24 double cos_Xo; // pre-computed values 25 double sin_Xo; // pre-computed values 26 } CoordTransform; 27 28 typedef enum {COORD_NONE, COORD_CELESTIAL, COORD_GALACTIC, COORD_ECLIPTIC} CoordTransformSystem; 29 30 CoordTransform *InitTransform (CoordTransformSystem input, CoordTransformSystem output); 31 int ApplyTransform (double *x, double *y, double X, double Y, CoordTransform *transform); 32 13 33 # endif
Note:
See TracChangeset
for help on using the changeset viewer.
