Changeset 5455 for trunk/psLib/test/astro/tst_psSphereOps.c
- Timestamp:
- Nov 1, 2005, 3:07:25 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/astro/tst_psSphereOps.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/astro/tst_psSphereOps.c
r5450 r5455 1 1 /** @file tst_psSphereOps.c 2 2 * 3 * @brief The code will ..... Work .... 4 * 3 * @brief The code will perform sphere rotations and transformations. 5 4 * 6 5 * @author d-Rob, MHPCC 7 6 * 8 * @version $Revision: 1.1 1$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-1 0-28 02:25:22$7 * @version $Revision: 1.12 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2005-11-02 01:07:25 $ 10 9 * 11 10 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 14 13 #include "psTest.h" 15 14 #include "pslib_strict.h" 15 16 16 static psS32 testSphereRotAlloc(void); 17 17 static psS32 testSphereRotQuat(void); … … 275 275 RAD_TO_DEG(galactic->r),RAD_TO_DEG(galactic->d), 276 276 l[x], b[x]); 277 printf("togal- %lf,%lf,%lf,%lf fromgal- %lf,%lf,%lf,%lf\n",278 toGalactic->q0, toGalactic->q1, toGalactic->q2, toGalactic->q3,279 fromGalactic->q0, fromGalactic->q1, fromGalactic->q2, fromGalactic->q3);280 277 return 3; 281 278 } 282 if (fabs(RAD_TO_DEG(icrsFromGalactic->r) - alpha[x]) > TOLERANCE || 279 if ( (fabs(RAD_TO_DEG(icrsFromGalactic->r) - alpha[x]) > TOLERANCE && 280 fabs(RAD_TO_DEG(icrsFromGalactic->d) - 90.0) > TOLERANCE ) || 283 281 fabs(RAD_TO_DEG(icrsFromGalactic->d) - delta[x]) > TOLERANCE) { 284 282 psError(PS_ERR_UNKNOWN, false,
Note:
See TracChangeset
for help on using the changeset viewer.
