Changeset 19128


Ignore:
Timestamp:
08/03/18 13:48:34 (6 years ago)
Author:
tbretz
Message:
Added a Scale function.
Location:
trunk/Mars/mbase
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mbase/MSpline3.cc

    r9518 r19128  
    289289}
    290290*/
     291
     292void MSpline3::Scale(double scale)
     293{
     294    //return fY + dx*fB + dx*dx*fC + dx*dx*dx*fD;
     295
     296    for (int i=0; i<fNp; i++)
     297    {
     298        fPoly[i].B() *= scale;
     299        fPoly[i].C() *= scale;
     300        fPoly[i].D() *= scale;
     301        fPoly[i].Y() *= scale;
     302    }
     303}
  • trunk/Mars/mbase/MSpline3.h

    r9518 r19128  
    6464    Double_t IntegralSolidAngle() const;
    6565
     66    void Scale(double=1);
     67
    6668    ClassDef(MSpline3, 1) // An extension of the TSpline3
    6769};
Note: See TracChangeset for help on using the changeset viewer.