00001 00002 # ifndef PM_GROWTH_CURVE_H 00003 # define PM_GROWTH_CURVE_H 00004 00005 typedef struct 00006 { 00007 psVector *radius; 00008 psVector *apMag; 00009 psF32 refRadius; 00010 psF32 maxRadius; 00011 psF32 fitMag; 00012 psF32 apRef; // apMag[refRadius] 00013 psF32 apLoss; // fitMag - apRef 00014 } 00015 pmGrowthCurve; 00016 00017 pmGrowthCurve *pmGrowthCurveAlloc (psF32 minRadius, psF32 maxRadius, psF32 refRadius); 00018 int psVectorBracket (psVector *index, psF32 key, bool above); 00019 psF32 psVectorInterpolate (psVector *index, psVector *value, psF32 key); 00020 psF32 pmGrowthCurveCorrect (pmGrowthCurve *growth, psF32 radius); 00021 00022 // XXX psVectorBracket,Interpolate should be put in pslib 00023 00024 # endif /* PM_GROWTH_CURVE_H */
1.4.4