From c6d815b6b11504be68d7a97df63cfef749624418 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Wed, 20 Dec 2017 20:45:35 -0200 Subject: Math expr GUI implemented --- Project/Sum.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Project/Sum.cpp') diff --git a/Project/Sum.cpp b/Project/Sum.cpp index 37d10f9..749a056 100644 --- a/Project/Sum.cpp +++ b/Project/Sum.cpp @@ -199,7 +199,7 @@ void Sum::Rotate(bool clockwise) } } -bool Sum::Solve(double input, double timeStep) +bool Sum::Solve(double input, double timeStep, double currentTime) { std::vector inputVector; for(auto itN = m_nodeList.begin(), itNEnd = m_nodeList.end(); itN != itNEnd; ++itN) { -- cgit From dbe0b112622f8e91fa3e44a6b6e1aa7e230d3ded Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Sun, 31 Dec 2017 17:59:10 -0200 Subject: Math Expression implemented --- Project/Sum.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Project/Sum.cpp') diff --git a/Project/Sum.cpp b/Project/Sum.cpp index 749a056..52fe66a 100644 --- a/Project/Sum.cpp +++ b/Project/Sum.cpp @@ -199,8 +199,12 @@ void Sum::Rotate(bool clockwise) } } -bool Sum::Solve(double input, double timeStep, double currentTime) +bool Sum::Solve(double* input, double timeStep) { + if(!input) { + m_output = 0.0; + return true; + } std::vector inputVector; for(auto itN = m_nodeList.begin(), itNEnd = m_nodeList.end(); itN != itNEnd; ++itN) { Node* node = *itN; -- cgit