IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 24, 2004, 11:59:43 AM (22 years ago)
Author:
gusciora
Message:

Changed the order of the arguments for the polynomial eval functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psSpline.h

    r2431 r2433  
    1212*  @author George Gusciora, MHPCC
    1313*
    14 *  @version $Revision: 1.34 $ $Name: not supported by cvs2svn $
    15 *  @date $Date: 2004-11-24 20:34:13 $
     14*  @version $Revision: 1.35 $ $Name: not supported by cvs2svn $
     15*  @date $Date: 2004-11-24 21:59:43 $
    1616*
    1717*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    163163 */
    164164float psPolynomial1DEval(
    165     float x,                           ///< location at which to evaluate
    166     const psPolynomial1D* myPoly       ///< Coefficients for the polynomial
     165    const psPolynomial1D* myPoly,       ///< Coefficients for the polynomial
     166    float x                           ///< location at which to evaluate
    167167);
    168168
     
    172172 */
    173173float psPolynomial2DEval(
     174    const psPolynomial2D* myPoly,       ///< Coefficients for the polynomial
     175    float x,                           ///< x location at which to evaluate
     176    float y                           ///< y location at which to evaluate
     177);
     178
     179/** Evaluates a 3-D polynomial at specific coordinates.
     180 *
     181 *  @return float    result of polynomial at given location
     182 */
     183float psPolynomial3DEval(
     184    const psPolynomial3D* myPoly,       ///< Coefficients for the polynomial
    174185    float x,                           ///< x location at which to evaluate
    175186    float y,                           ///< y location at which to evaluate
    176     const psPolynomial2D* myPoly       ///< Coefficients for the polynomial
    177 );
    178 
    179 /** Evaluates a 3-D polynomial at specific coordinates.
    180  *
    181  *  @return float    result of polynomial at given location
    182  */
    183 float psPolynomial3DEval(
    184     float x,                           ///< x location at which to evaluate
    185     float y,                           ///< y location at which to evaluate
    186     float z,                           ///< z location at which to evaluate
    187     const psPolynomial3D* myPoly       ///< Coefficients for the polynomial
     187    float z                           ///< z location at which to evaluate
    188188);
    189189
     
    193193 */
    194194float psPolynomial4DEval(
     195    const psPolynomial4D* myPoly,       ///< Coefficients for the polynomial
    195196    float w,                           ///< w location at which to evaluate
    196197    float x,                           ///< x location at which to evaluate
    197198    float y,                           ///< y location at which to evaluate
    198     float z,                           ///< z location at which to evaluate
    199     const psPolynomial4D* myPoly       ///< Coefficients for the polynomial
    200 );
    201 
    202 psVector *psPolynomial1DEvalVector(const psVector *x,             ///< x locations at which to evaluate
    203                                    const psPolynomial1D *myPoly   ///< Coefficients for the polynomial
    204                                   );
    205 
    206 psVector *psPolynomial2DEvalVector(const psVector *x,             ///< x locations at which to evaluate
    207                                    const psVector *y,             ///< y locations at which to evaluate
    208                                    const psPolynomial2D *myPoly   ///< Coefficients for the polynomial
    209                                   );
    210 
    211 psVector *psPolynomial3DEvalVector(const psVector *x,             ///< x locations at which to evaluate
    212                                    const psVector *y,             ///< y locations at which to evaluate
    213                                    const psVector *z,             ///< z locations at which to evaluate
    214                                    const psPolynomial3D *myPoly   ///< Coefficients for the polynomial
    215                                   );
    216 
    217 psVector *psPolynomial4DEvalVector(const psVector *w,             ///< w locations at which to evaluate
    218                                    const psVector *x,             ///< x locations at which to evaluate
    219                                    const psVector *y,             ///< y locations at which to evaluate
    220                                    const psVector *z,             ///< z locations at which to evaluate
    221                                    const psPolynomial4D *myPoly   ///< Coefficients for the polynomial
    222                                   );
     199    float z                           ///< z location at which to evaluate
     200);
     201
     202psVector *psPolynomial1DEvalVector(
     203    const psPolynomial1D *myPoly,   ///< Coefficients for the polynomial
     204    const psVector *x             ///< x locations at which to evaluate
     205);
     206
     207psVector *psPolynomial2DEvalVector(
     208    const psPolynomial2D *myPoly,   ///< Coefficients for the polynomial
     209    const psVector *x,             ///< x locations at which to evaluate
     210    const psVector *y             ///< y locations at which to evaluate
     211);
     212
     213psVector *psPolynomial3DEvalVector(
     214    const psPolynomial3D *myPoly,   ///< Coefficients for the polynomial
     215    const psVector *x,             ///< x locations at which to evaluate
     216    const psVector *y,             ///< y locations at which to evaluate
     217    const psVector *z             ///< z locations at which to evaluate
     218);
     219
     220psVector *psPolynomial4DEvalVector(
     221    const psPolynomial4D *myPoly,   ///< Coefficients for the polynomial
     222    const psVector *w,             ///< w locations at which to evaluate
     223    const psVector *x,             ///< x locations at which to evaluate
     224    const psVector *y,             ///< y locations at which to evaluate
     225    const psVector *z             ///< z locations at which to evaluate
     226);
    223227
    224228/*****************************************************************************/
     
    323327 */
    324328double psDPolynomial1DEval(
    325     double x,                          ///< Value at which to evaluate
    326     const psDPolynomial1D* myPoly      ///< Coefficients for the polynomial
     329    const psDPolynomial1D* myPoly,      ///< Coefficients for the polynomial
     330    double x                          ///< Value at which to evaluate
    327331);
    328332
     
    332336 */
    333337double psDPolynomial2DEval(
     338    const psDPolynomial2D* myPoly,       ///< Coefficients for the polynomial
    334339    double x,                           ///< Value x at which to evaluate
    335     double y,                           ///< Value y at which to evaluate
    336     const psDPolynomial2D* myPoly       ///< Coefficients for the polynomial
     340    double y            ///< Value y at which to evaluate
    337341);
    338342
     
    342346 */
    343347double psDPolynomial3DEval(
     348    const psDPolynomial3D* myPoly,      ///< Coefficients for the polynomial
    344349    double x,                          ///< Value x at which to evaluate
    345350    double y,                          ///< Value y at which to evaluate
    346     double z,                          ///< Value z at which to evaluate
    347     const psDPolynomial3D* myPoly      ///< Coefficients for the polynomial
     351    double z     ///< Value z at which to evaluate
    348352);
    349353
     
    353357 */
    354358double psDPolynomial4DEval(
     359    const psDPolynomial4D* myPoly,      ///< Coefficients for the polynomial
    355360    double w,                          ///< Value w at which to evaluate
    356361    double x,                          ///< Value x at which to evaluate
    357362    double y,                          ///< Value y at which to evaluate
    358     double z,                          ///< Value z at which to evaluate
    359     const psDPolynomial4D* myPoly      ///< Coefficients for the polynomial
    360 );
    361 
    362 psVector *psDPolynomial1DEvalVector(const psVector *x,             ///< x locations at which to evaluate
    363                                     const psDPolynomial1D *myPoly  ///< Coefficients for the polynomial
    364                                    );
    365 
    366 psVector *psDPolynomial2DEvalVector(const psVector *x,             ///< x locations at which to evaluate
    367                                     const psVector *y,             ///< y locations at which to evaluate
    368                                     const psDPolynomial2D *myPoly  ///< Coefficients for the polynomial
    369                                    );
    370 
    371 psVector *psDPolynomial3DEvalVector(const psVector *x,             ///< x locations at which to evaluate
    372                                     const psVector *y,             ///< y locations at which to evaluate
    373                                     const psVector *z,             ///< z locations at which to evaluate
    374                                     const psDPolynomial3D *myPoly  ///< Coefficients for the polynomial
    375                                    );
    376 
    377 psVector *psDPolynomial4DEvalVector(const psVector *w,             ///< w locations at which to evaluate
    378                                     const psVector *x,             ///< x locations at which to evaluate
    379                                     const psVector *y,             ///< y locations at which to evaluate
    380                                     const psVector *z,             ///< z locations at which to evaluate
    381                                     const psDPolynomial4D *myPoly  ///< Coefficients for the polynomial
    382                                    );
     363    double z     ///< Value z at which to evaluate
     364);
     365
     366psVector *psDPolynomial1DEvalVector(
     367    const psDPolynomial1D *myPoly, ///< Coefficients for the polynomial
     368    const psVector *x             ///< x locations at which to evaluate
     369);
     370
     371psVector *psDPolynomial2DEvalVector(
     372    const psDPolynomial2D *myPoly,  ///< Coefficients for the polynomial
     373    const psVector *x,             ///< x locations at which to evaluate
     374    const psVector *y             ///< y locations at which to evaluate
     375);
     376
     377psVector *psDPolynomial3DEvalVector(
     378    const psDPolynomial3D *myPoly,  ///< Coefficients for the polynomial
     379    const psVector *x,             ///< x locations at which to evaluate
     380    const psVector *y,             ///< y locations at which to evaluate
     381    const psVector *z             ///< z locations at which to evaluate
     382);
     383
     384psVector *psDPolynomial4DEvalVector(
     385    const psDPolynomial4D *myPoly,  ///< Coefficients for the polynomial
     386    const psVector *w,             ///< w locations at which to evaluate
     387    const psVector *x,             ///< x locations at which to evaluate
     388    const psVector *y,             ///< y locations at which to evaluate
     389    const psVector *z             ///< z locations at which to evaluate
     390);
    383391
    384392
Note: See TracChangeset for help on using the changeset viewer.