Mb dyn half sine and cosine (#42)

* (int) added

* size_t count

* add files

* MBDyn new joints, sine, cosine

* CompoundJoints debugged
This commit is contained in:
aiksiongkoh
2023-12-13 07:52:16 -07:00
committed by GitHub
parent 87ed8700e2
commit de8759384c
101 changed files with 7993 additions and 625 deletions

View File

@@ -9,6 +9,7 @@
#include "FunctionX.h"
#include "Constant.h"
#include "Sum.h"
#include "Arguments.h"
using namespace MbD;
@@ -18,10 +19,9 @@ MbD::FunctionX::FunctionX(Symsptr arg) : xx(arg)
void MbD::FunctionX::arguments(Symsptr args)
{
//args is a Sum with "terms" containing the actual arguments
auto sum = std::static_pointer_cast<Sum>(args);
assert(sum->terms->size() == 1);
xx = sum->terms->front();
auto arguments = std::static_pointer_cast<Arguments>(args);
assert(arguments->terms->size() == 1);
xx = arguments->terms->front();
}
Symsptr MbD::FunctionX::copyWith(Symsptr)