diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-12-31 17:59:10 -0200 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-12-31 17:59:10 -0200 |
commit | dbe0b112622f8e91fa3e44a6b6e1aa7e230d3ded (patch) | |
tree | 51c89fc8155dcc447743dc89a1ab5ce36acc72cf /Project/Gain.cpp | |
parent | ff52be4e9705d443a4fde091525806322c2dc032 (diff) | |
download | PSP.git-dbe0b112622f8e91fa3e44a6b6e1aa7e230d3ded.tar.gz PSP.git-dbe0b112622f8e91fa3e44a6b6e1aa7e230d3ded.tar.xz PSP.git-dbe0b112622f8e91fa3e44a6b6e1aa7e230d3ded.zip |
Math Expression implemented
Diffstat (limited to 'Project/Gain.cpp')
-rw-r--r-- | Project/Gain.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Project/Gain.cpp b/Project/Gain.cpp index 701b470..95107d8 100644 --- a/Project/Gain.cpp +++ b/Project/Gain.cpp @@ -175,9 +175,13 @@ void Gain::Move(wxPoint2DDouble position) UpdatePoints(); } -bool Gain::Solve(double input, double timeStep, double currentTime) +bool Gain::Solve(double* input, double timeStep) { - m_output = input * m_value; + if(!input){ + m_output = 0.0; + return true; + } + m_output = input[0] * m_value; return true; } |