TABLE OF CONTENTS


CcurveUpdate/UpdateParamPar [ Functions ]

NAME

    UpdateParamPar --- update parametric component with new parameters

FUNCTION

Update the parametric component of a curve, given a new set of parameters. This just involves copying the new parameters into the CCurve and calling EvalParametric to re-evaluate the curve.

SYNOPSIS

1455 void UpdateParamPar(curveP theCurve, double * newPar)

INPUTS

    theCurve  CCurve structure
    newPar    new parametric component parameters

OUTPUTS

    theCurve  CCurve structure, with newPar copied into ParamPar and Y and Ycum updated.

SOURCE

1459 {
1460     if(!theCurve->hasPar) return;
1461     // copy new parameters into the curve
1462     for(int i=0; i<theCurve->np; i++)
1463         theCurve->ParamPar[i] = newPar[i];
1464     // evaluate the curve
1465     EvalParametric(theCurve, -1);
1466 }