- Timestamp:
- Aug 26, 2010, 9:18:39 AM (16 years ago)
- Location:
- branches/sc_branches/trunkTest
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/sc_branches/trunkTest
- Property svn:mergeinfo changed
-
branches/sc_branches/trunkTest/psModules
- Property svn:mergeinfo deleted
-
branches/sc_branches/trunkTest/psModules/src/objects/pmPhotObj.c
r28013 r29060 16 16 #include <string.h> 17 17 #include <pslib.h> 18 19 #include "pmHDU.h" 20 #include "pmFPA.h" 21 22 #include "pmTrend2D.h" 23 #include "pmResiduals.h" 24 #include "pmGrowthCurve.h" 25 #include "pmSpan.h" 26 #include "pmFootprintSpans.h" 27 #include "pmFootprint.h" 28 #include "pmPeaks.h" 29 #include "pmMoments.h" 30 #include "pmModelFuncs.h" 31 #include "pmModel.h" 32 #include "pmModelUtils.h" 33 #include "pmModelClass.h" 34 #include "pmSourceMasks.h" 35 #include "pmSourceExtendedPars.h" 36 #include "pmSourceDiffStats.h" 37 #include "pmSource.h" 38 18 39 #include "pmPhotObj.h" 19 #include "pmSource.h" 40 20 41 21 42 static void pmPhotObjFree (pmPhotObj *tmp) … … 82 103 return (0); 83 104 } 105 106 // sort by X (ascending) 107 int pmPhotObjSortByX (const void **a, const void **b) 108 { 109 pmPhotObj *objA = *(pmPhotObj **)a; 110 pmPhotObj *objB = *(pmPhotObj **)b; 111 112 psF32 fA = objA->x; 113 psF32 fB = objB->x; 114 115 psF32 diff = fA - fB; 116 if (diff > FLT_EPSILON) return (+1); 117 if (diff < FLT_EPSILON) return (-1); 118 return (0); 119 }
Note:
See TracChangeset
for help on using the changeset viewer.
