Biorbd
Release_1.13.0
Toggle main menu visibility
Loading...
Searching...
No Matches
ViaPoint.cpp
1
#define BIORBD_API_EXPORTS
2
#include "InternalForces/ViaPoint.h"
3
4
#include "Utils/String.h"
5
6
using namespace
BIORBD_NAMESPACE;
7
8
internal_forces::ViaPoint::ViaPoint
() : utils::
Vector3d
() {
9
*
m_typeOfNode
= utils::NODE_TYPE::VIA_POINT;
10
}
11
12
internal_forces::ViaPoint::ViaPoint
(
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
20
internal_forces::ViaPoint::ViaPoint
(
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
30
internal_forces::ViaPoint::ViaPoint
(
const
utils::Vector3d
& other)
31
: utils::
Vector3d
(other) {
32
*
m_typeOfNode
= utils::NODE_TYPE::VIA_POINT;
33
}
34
35
internal_forces::ViaPoint::ViaPoint
(
const
internal_forces::ViaPoint
& other)
36
: utils::
Vector3d
(other) {}
37
38
internal_forces::ViaPoint
internal_forces::ViaPoint::DeepCopy
()
const
{
39
internal_forces::ViaPoint
copy;
40
copy.
DeepCopy
(*
this
);
41
return
copy;
42
}
43
44
void
internal_forces::ViaPoint::DeepCopy
(
45
const
internal_forces::ViaPoint
& other) {
46
utils::Vector3d::DeepCopy
(other);
47
}
BIORBD_NAMESPACE::internal_forces::ViaPoint
Via point of a muscle.
Definition
ViaPoint.h:17
BIORBD_NAMESPACE::internal_forces::ViaPoint::DeepCopy
ViaPoint DeepCopy() const
Deep copy of a ViaPoint.
Definition
ViaPoint.cpp:38
BIORBD_NAMESPACE::internal_forces::ViaPoint::ViaPoint
ViaPoint()
Contruct ViaPoint.
Definition
ViaPoint.cpp:8
BIORBD_NAMESPACE::utils::Node::name
const String & name() const
Return the name of the node.
Definition
Node.cpp:43
BIORBD_NAMESPACE::utils::Node::m_typeOfNode
std::shared_ptr< NODE_TYPE > m_typeOfNode
The type of the node.
Definition
Node.h:92
BIORBD_NAMESPACE::utils::String
Wrapper around the std::string class with augmented functionality.
Definition
String.h:18
BIORBD_NAMESPACE::utils::Vector3d
Wrapper around Eigen Vector3d and attach it to a parent.
Definition
Vector3d.h:27
BIORBD_NAMESPACE::utils::Vector3d::Vector3d
Vector3d()
Construct 3D vector.
Definition
Vector3d.cpp:9
BIORBD_NAMESPACE::utils::Vector3d::DeepCopy
Vector3d DeepCopy() const
Deep copy of a 3D vector.
Definition
Vector3d.cpp:68
src
InternalForces
ViaPoint.cpp
Generated by
1.18.0