- Timestamp:
- Oct 14, 2013, 7:43:03 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130904/psModules/src/objects/pmModelUtils.c
r35768 r36215 129 129 bool pmModelAxesToParams (float *Sxx, float *Sxy, float *Syy, psEllipseAxes axes, bool useReff) { 130 130 131 // restrict axex to 0.5 here not below 132 if (axes.minor < 0.2) axes.minor = 0.2; 133 if (axes.major < 0.2) axes.major = 0.2; 134 131 135 psEllipseShape shape = psEllipseAxesToShape (axes); 132 136 … … 137 141 // set the shape parameters 138 142 if (useReff) { 139 *Sxx = PS_MAX(0.5, shape.sx); 140 *Syy = PS_MAX(0.5, shape.sy); 143 // *Sxx = PS_MAX(0.5, shape.sx); 144 // *Syy = PS_MAX(0.5, shape.sy); 145 *Sxx = shape.sx; 146 *Syy = shape.sy; 141 147 *Sxy = shape.sxy * 2.0; 142 148 } else { 143 *Sxx = PS_MAX(0.5, M_SQRT2*shape.sx); 144 *Syy = PS_MAX(0.5, M_SQRT2*shape.sy); 149 // *Sxx = PS_MAX(0.5, M_SQRT2*shape.sx); 150 // *Syy = PS_MAX(0.5, M_SQRT2*shape.sy); 151 *Sxx = M_SQRT2*shape.sx; 152 *Syy = M_SQRT2*shape.sy; 145 153 *Sxy = shape.sxy; 146 154 }
Note:
See TracChangeset
for help on using the changeset viewer.
