Changeset 5444 for trunk/psLib/src/astro
- Timestamp:
- Oct 24, 2005, 2:38:00 PM (21 years ago)
- Location:
- trunk/psLib/src/astro
- Files:
-
- 2 edited
-
psSphereOps.c (modified) (2 diffs)
-
psSphereOps.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astro/psSphereOps.c
r5437 r5444 8 8 * @author Dave Robbins, MHPCC 9 9 * 10 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-10-2 1 02:14:02$10 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-10-25 00:38:00 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 135 135 0.0); 136 136 137 /* psSphereRot *test = psSphereRotICRSToGalactic(); 138 if (fabs(coord->d-DEG_TO_RAD(27.1283)) < 0.0001 && transform->q0 == test->q0 && 139 transform->q1 == test->q1 && transform->q2 == test->q2 && transform->q3 == test->q3){ 140 printf("\ncoordquat = %lf,%lf,%lf,%lf\n", coordQuat->q0, coordQuat->q1, coordQuat->q2, 141 coordQuat->q3); 142 // coordQuat->q1 += -1.0; 143 test->q3 = - test->q3; 144 *(psSphereRot**)&transform = test; 145 } 146 psFree(test); 147 */ 137 148 // Inserted by PAP 138 149 psSphereRot *conjugate = psSphereRotConjugate(NULL, transform); -
trunk/psLib/src/astro/psSphereOps.h
r5437 r5444 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-10-2 1 02:14:02$9 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-10-25 00:38:00 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 45 45 */ 46 46 typedef enum { 47 PS_SPHERICAL, ///< offset corresponds to an angular offset48 PS_LINEAR ///< offset corresponds to a linear offset47 PS_SPHERICAL, ///< offset corresponds to an angular offset 48 PS_LINEAR ///< offset corresponds to a linear offset 49 49 } psSphereOffsetMode; 50 50 … … 55 55 */ 56 56 typedef enum { 57 PS_ARCSEC, ///< Arcseconds58 PS_ARCMIN, ///< Arcminutes59 PS_DEGREE, ///< Degrees60 PS_RADIAN ///< Radians57 PS_ARCSEC, ///< Arcseconds 58 PS_ARCMIN, ///< Arcminutes 59 PS_DEGREE, ///< Degrees 60 PS_RADIAN ///< Radians 61 61 } psSphereOffsetUnit; 62 62 … … 68 68 69 69 psSphereRot* psSphereRotAlloc( 70 double alphaP, ///< north pole latitude71 double deltaP, ///< north pole longitude72 double phiP ///< defines the longitude in the input system of the equatorial intersection between the two systems (e.g, the first point of Ares).70 double alphaP, ///< north pole latitude 71 double deltaP, ///< north pole longitude 72 double phiP ///< defines the longitude in the input system of the equatorial intersection between the two systems (e.g, the first point of Ares). 73 73 ); 74 74 … … 145 145 double deltaP, ///< north pole longitude 146 146 double phiP ///< defines the longitude in the input system of the equatorial intersection between the two systems (e.g, the first point of Ares). 147 );148 149 /** Converts a psCube to a psSphere150 *151 * @return psSphere* New psSphere that is equivalent to the input psCube152 *153 */154 psSphere* psCubeToSphere(155 const psCube* cube ///< a cubic coordinate to convert156 );157 158 /** Converts a psSphere to a psCube159 *160 * @return psCube* New psCube that is equivalent to the input psSphere161 *162 */163 psCube* psSphereToCube(164 const psSphere* sphere ///< a spherical coordinate to convert165 147 ); 166 148
Note:
See TracChangeset
for help on using the changeset viewer.
