Biorbd Release_1.13.0
Loading...
Searching...
No Matches
ViaPoint.cpp
1#define BIORBD_API_EXPORTS
2#include "InternalForces/ViaPoint.h"
3
4#include "Utils/String.h"
5
6using namespace BIORBD_NAMESPACE;
7
9 *m_typeOfNode = utils::NODE_TYPE::VIA_POINT;
10}
11
13 const utils::Scalar& x,
14 const utils::Scalar& y,
15 const utils::Scalar& z)
16 : utils::Vector3d(x, y, z) {
17 *m_typeOfNode = utils::NODE_TYPE::VIA_POINT;
18}
19
21 const utils::Scalar& x,
22 const utils::Scalar& y,
23 const utils::Scalar& z,
24 const utils::String& name,
25 const utils::String& parentName)
26 : utils::Vector3d(x, y, z, name, parentName) {
27 *m_typeOfNode = utils::NODE_TYPE::VIA_POINT;
28}
29
31 : utils::Vector3d(other) {
32 *m_typeOfNode = utils::NODE_TYPE::VIA_POINT;
33}
34
37
43
ViaPoint DeepCopy() const
Deep copy of a ViaPoint.
Definition ViaPoint.cpp:38
const String & name() const
Return the name of the node.
Definition Node.cpp:43
std::shared_ptr< NODE_TYPE > m_typeOfNode
The type of the node.
Definition Node.h:92
Wrapper around the std::string class with augmented functionality.
Definition String.h:18
Wrapper around Eigen Vector3d and attach it to a parent.
Definition Vector3d.h:27
Vector3d()
Construct 3D vector.
Definition Vector3d.cpp:9
Vector3d DeepCopy() const
Deep copy of a 3D vector.
Definition Vector3d.cpp:68