Changeset 3316 for trunk/psLib/test/astronomy/tst_psCoord.c
- Timestamp:
- Feb 24, 2005, 10:21:40 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/astronomy/tst_psCoord.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/astronomy/tst_psCoord.c
r3293 r3316 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1.1 4$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-02- 19 02:55:33$8 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-02-24 20:21:40 $ 10 10 * 11 11 * XXX: Must test psSpherePrecess. … … 28 28 static psS32 test3( void ); 29 29 static psS32 testSphereTransformApply1( void ); 30 static psS32 test 4b( void );30 static psS32 testSphereTransformApply2( void ); 31 31 static psS32 test5( void ); 32 32 static psS32 test6( void ); … … 46 46 {test3, 0000, "psPlaneDistortApply()", 0, false}, 47 47 {testSphereTransformApply1, 0000, "psPSphereTransformApply()", 0, false}, 48 {test 4b, 0000, "psPSphereTransformApply()", 0, false},48 {testSphereTransformApply2, 0000, "psPSphereTransformApply()", 0, false}, 49 49 {test5, 0000, "psSphereTransformICRSToEcliptic()", 0, false}, 50 50 {test6, 0000, "psSphereTransformEclipticToICRS()", 0, false}, … … 445 445 psSphereTransform *myST = psSphereTransformAlloc(0.0, 0.0, 0.0); 446 446 447 in->r = DEG_TO_RAD(45.0);448 in->d = DEG_TO_RAD(30.0);449 in->rErr = 0.0;450 in->dErr = 0.0;451 452 447 for (float r=0.0;r<180.0;r+=DEG_INC) { 453 448 for (float d=0.0;d<90.0;d+=DEG_INC) { … … 505 500 506 501 /****************************************************************************** 507 test 4b(): This test verifies that psSphereTransformApply() works properly. We508 create two psSphereTransforms: a forward transform and a reverse transform 509 (which is the mathematical inverse of the forward transform). We apply both 510 transforms to several spherical coordinates and ensure that the original input 511 coordinate is obtained after applying both transforms.502 testSphereTransformApply2(): This test verifies that psSphereTransformApply() 503 works properly. We create two psSphereTransforms: a forward transform and a 504 reverse transform (which is the mathematical inverse of the forward transform). 505 We apply both transforms to several spherical coordinates and ensure that the 506 original input coordinate is obtained after applying both transforms. 512 507 513 508 XXX: We currently test the alpha and delta offsets independently. Attempts to … … 518 513 *****************************************************************************/ 519 514 #define ERROR_PERCENT 0.01 520 psS32 test 4b( void )515 psS32 testSphereTransformApply2( void ) 521 516 { 522 517 psS32 testStatus = 0;
Note:
See TracChangeset
for help on using the changeset viewer.
