1 #define BIORBD_API_EXPORTS
2 #include "Utils/Vector3d.h"
4 #include "Utils/RotoTrans.h"
5 #include "Utils/Vector.h"
8 RigidBodyDynamics::Math::
Vector3d (RigidBodyDynamics::Math::
Vector3d::Zero()),
15 const biorbd::utils::Scalar& x,
16 const biorbd::utils::Scalar& y,
17 const biorbd::utils::Scalar& z) :
18 RigidBodyDynamics::Math::
Vector3d (x, y, z),
19 biorbd::utils::
Node ()
25 const biorbd::utils::Scalar& x,
26 const biorbd::utils::Scalar& y,
27 const biorbd::utils::Scalar& z,
30 RigidBodyDynamics::Math::
Vector3d (x, y, z),
31 biorbd::utils::
Node (name, parentName)
40 RigidBodyDynamics::Math::
Vector3d (vec),
41 Node(name, parentName)
47 const RigidBodyDynamics::Math::Vector3d &other) :
48 RigidBodyDynamics::Math::
Vector3d(other[0], other[1], other[2]), biorbd::utils::
Node ()
55 const RigidBodyDynamics::Math::VectorNd &other) :
56 RigidBodyDynamics::Math::
Vector3d(other[0], other[1], other[2]),
57 biorbd::utils::
Node ()
63 const RigidBodyDynamics::Math::Vector4d &other) :
64 RigidBodyDynamics::Math::
Vector3d(other[0], other[1], other[2]), biorbd::utils::
Node ()
69 #ifdef BIORBD_USE_CASADI_MATH
72 const RBDLCasadiMath::MX_Xd_SubMatrix &other) :
73 RigidBodyDynamics::Math::
Vector3d(other),
74 biorbd::utils::
Node ()
91 this->RigidBodyDynamics::Math::Vector3d::operator=(other);
97 RigidBodyDynamics::Math::Vector4d v;
98 v.block(0, 0, 3, 1) = *
this;
100 return static_cast<RigidBodyDynamics::Math::VectorNd
>((rt * v).block(0, 0, 3, 1));
104 RigidBodyDynamics::Math::Vector4d v;
105 v.block(0, 0, 3, 1) = *
this;
107 *
this = (rt * v).block(0, 0, 3, 1);
112 *m_typeOfNode = biorbd::utils::VECTOR3D;
115 #ifdef BIORBD_USE_CASADI_MATH
116 biorbd::utils::Scalar biorbd::utils::Vector3d::x()
const
121 biorbd::utils::Scalar biorbd::utils::Vector3d::y()
const
126 biorbd::utils::Scalar biorbd::utils::Vector3d::z()
const
131 void biorbd::utils::Vector3d::operator=(
132 const RBDLCasadiMath::MX_Xd_SubMatrix &other)
137 void biorbd::utils::Vector3d::operator=(
const RigidBodyDynamics::Math::Vector4d& other)