Changeset 3977 for trunk/psLib/src/astro
- Timestamp:
- May 18, 2005, 7:18:20 PM (21 years ago)
- Location:
- trunk/psLib/src/astro
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astro/psCoord.c
r3884 r3977 10 10 * @author GLG, MHPCC 11 11 * 12 * @version $Revision: 1.6 6$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-05-1 1 22:02:15$12 * @version $Revision: 1.67 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-05-19 05:18:20 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 876 876 psPlaneTransform *psPlaneTransformCombine(psPlaneTransform *out, 877 877 const psPlaneTransform *trans1, 878 const psPlaneTransform *trans2) 879 { 878 const psPlaneTransform *trans2, 879 psRegion region, 880 int nSamples) 881 { 882 883 // XXX: This does not yet use region and nSamples: need to modify -rdd 884 880 885 PS_PTR_CHECK_NULL(trans1, NULL); 881 886 PS_PTR_CHECK_NULL(trans2, NULL); … … 1128 1133 psPlaneTransform *psPlaneTransformInvert(psPlaneTransform *out, 1129 1134 const psPlaneTransform *in, 1130 psRegion *region,1135 psRegion region, 1131 1136 int nSamples) 1132 1137 { … … 1138 1143 return(p_psPlaneTransformLinearInvert((psPlaneTransform *) in)); 1139 1144 } 1140 PS_PTR_CHECK_NULL(region, NULL);1141 1145 PS_INT_COMPARE(1, nSamples, NULL); 1142 1146 … … 1197 1201 psS32 cnt = 0; 1198 1202 for (int yint = 0; yint < nSamples; yint++) { 1199 inCoord->y = region ->y0 + ((psF32) yint) * ((region->y1 - region->y0) / ((psF32) nSamples));1203 inCoord->y = region.y0 + ((psF32) yint) * ((region.y1 - region.y0) / ((psF32) nSamples)); 1200 1204 for (int xint = 0; xint < nSamples; xint++) { 1201 inCoord->x = region ->x0 + ((psF32) xint) * ((region->x1 - region->x0) / ((psF32) nSamples));1205 inCoord->x = region.x0 + ((psF32) xint) * ((region.x1 - region.x0) / ((psF32) nSamples)); 1202 1206 (void)psPlaneTransformApply(outCoord, in, inCoord); 1203 1207 -
trunk/psLib/src/astro/psCoord.h
r3598 r3977 10 10 * @author GLG, MHPCC 11 11 * 12 * @version $Revision: 1.3 0$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-0 3-31 23:01:46$12 * @version $Revision: 1.31 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-05-19 05:18:20 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 383 383 psPlaneTransform *out, ///< a transform to recycle, or NULL if one is to be created. 384 384 const psPlaneTransform *in, ///< transform to invert 385 psRegion *region,///< region to fit for non-linear transform inversion385 psRegion region, ///< region to fit for non-linear transform inversion 386 386 int nSamples ///< number of samples in each axis for fit 387 387 ); … … 404 404 psPlaneTransform *out, ///< a transform to recycle, or NULL if one is to be created. 405 405 const psPlaneTransform *trans1, ///< first transform to combine 406 const psPlaneTransform *trans2 ///< first transform to combine 406 const psPlaneTransform *trans2, ///< first transform to combine 407 psRegion region, ///< region to cover (for non-linear transforms) 408 int nSamples ///< number of samples on each axis (for non-linear transforms) 407 409 ); 408 410 … … 431 433 float sigmaClip 432 434 ); 435 //XXX: need to add doxygen comments on the parameters above. -rdd 433 436 434 437 /// @}
Note:
See TracChangeset
for help on using the changeset viewer.
