7 #include "GeoGenericFunctions/ParameterQuotient.h" 8 #include "GeoGenericFunctions/Parameter.h" 11 PARAMETER_OBJECT_IMP(ParameterQuotient)
13 ParameterQuotient::ParameterQuotient(const AbsParameter *arg1, const AbsParameter *arg2):
17 if (arg1->parameter() && _arg1->parameter()) _arg1->parameter()->connectFrom(arg1->parameter());
18 if (arg2->parameter() && _arg2->parameter()) _arg2->parameter()->connectFrom(arg2->parameter());
21 ParameterQuotient::ParameterQuotient(
const ParameterQuotient & right) :
23 _arg1(right._arg1->clone()),
24 _arg2(right._arg2->clone())
28 ParameterQuotient::~ParameterQuotient()
35 double ParameterQuotient::getValue()
const {
36 return _arg1->getValue()/_arg2->getValue();