TF2 with class member as function

Hello Rooters,
Is it possible to use a class member as function with TF2 as it
works for TF1:

http://root.cern.ch/root/html524/TF1.html

I guess not or do I miss something?

Cheers
Otto

Hello

this is possible also for TF2 (and TF3). Just do as in the TF1 case
(see root.cern.ch/root/html524/TF1.html#F5 )
but you need to add also the ymin and ymax values:

TF2 *  f2 = new TF2("f2","f2",fptr,&MyFunction::Evaluate,0,1,0,1,npar,"MyFunction","Evaluate");  

Best Regards

Lorenzo