1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
#include <CPnts_MyGaussFunction.ixx> void CPnts_MyGaussFunction::Init(const CPnts_RealFunction& F, const Standard_Address D) { myFunction = F; myData = D; } Standard_Boolean CPnts_MyGaussFunction::Value(const Standard_Real X, Standard_Real& F) { F = myFunction(X,myData); return Standard_True; }