20 #ifndef _LINEAR_FUNCTION_H_
21 #define _LINEAR_FUNCTION_H_
23 #include "mbsim/functions/function.h"
29 template<
typename Ret,
typename Arg>
37 int getArgSize()
const {
return 1; }
42 void initializeUsingXML(xercesc::DOMElement *element) {
43 xercesc::DOMElement *e=MBXMLUtils::E(element)->getFirstElementChildNamed(MBSIM%
"a0");
44 if(e) a0=Element::getDouble(e);
45 e=MBXMLUtils::E(element)->getFirstElementChildNamed(MBSIM%
"a1");
46 a1=Element::getDouble(e);
48 void seta0(
double a0_) { a0 = a0_; }
49 void seta1(
double a1_) { a1 = a1_; }
Definition: planar_contour.h:31
Definition: linear_function.h:27