Changeset 6383
- Timestamp:
- Feb 8, 2006, 11:34:53 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/astro/psCoord.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astro/psCoord.c
r6382 r6383 10 10 * @author GLG, MHPCC 11 11 * 12 * @version $Revision: 1.10 7$ $Name: not supported by cvs2svn $13 * @date $Date: 2006-02-08 21:3 0:34$12 * @version $Revision: 1.108 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2006-02-08 21:34:53 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 253 253 254 254 if (out == NULL) { 255 out = (psPlane* ) psAlloc(sizeof(psPlane));255 out = psPlaneAlloc(); 256 256 } 257 257 … … 294 294 coordinates: term3 and term4 (magnitude and color). 295 295 *****************************************************************************/ 296 psPlane* psPlaneDistortApply(psPlane* out, 297 const psPlaneDistort* distort, 298 const psPlane* coords, 299 float mag, 300 float color) 296 psPlane* psPlaneDistortApply( 297 psPlane* out, 298 const psPlaneDistort* distort, 299 const psPlane* coords, 300 float mag, 301 float color) 301 302 { 302 303 PS_ASSERT_PTR_NON_NULL(distort, NULL); … … 306 307 307 308 if (out == NULL) { 308 out = (psPlane* ) psAlloc(sizeof(psPlane));309 out = psPlaneAlloc(); 309 310 } 310 311 out->x = psPolynomial4DEval( … … 552 553 } 553 554 554 psSphere* psDeproject(const psPlane* coord, 555 const psProjection* projection) 555 psSphere* psDeproject( 556 const psPlane* coord, 557 const psProjection* projection) 556 558 { 557 559 return(p_psDeproject(NULL, coord, projection)); … … 567 569 *****************************************************************************/ 568 570 569 static psPolynomial2D *multiplyDPoly2D(psPolynomial2D *trans1, 570 psPolynomial2D *trans2) 571 static psPolynomial2D *multiplyDPoly2D( 572 psPolynomial2D *trans1, 573 psPolynomial2D *trans2) 571 574 { 572 575 psTrace(__func__, 4, "---- %s() begin ----\n", __func__); … … 791 794 XXX: This code has problems with data that corresponds to a non-linear fit. 792 795 *****************************************************************************/ 793 bool psPlaneTransformFit(psPlaneTransform *trans, 794 const psArray *source, 795 const psArray *dest, 796 int nRejIter, 797 float sigmaClip) 796 bool psPlaneTransformFit( 797 psPlaneTransform *trans, 798 const psArray *source, 799 const psArray *dest, 800 int nRejIter, 801 float sigmaClip) 798 802 { 799 803 PS_ASSERT_PTR_NON_NULL(trans, NULL); … … 1087 1091 } 1088 1092 1089 psPixels *psPixelsTransform(psPixels *out, 1090 const psPixels *input, 1091 const psPlaneTransform *inToOut) 1093 psPixels *psPixelsTransform( 1094 psPixels *out, 1095 const psPixels *input, 1096 const psPlaneTransform *inToOut) 1092 1097 { 1093 1098 PS_ASSERT_PTR_NON_NULL(input, NULL);
Note:
See TracChangeset
for help on using the changeset viewer.
