template<typename real>
class sofa::defaulttype::StdRigidTypes< 2, real >
Degrees of freedom of 2D rigid bodies.
|
static constexpr const CPos & | getCPos (const Coord &c) |
|
static constexpr void | setCPos (Coord &c, const CPos &v) |
|
static constexpr const CRot & | getCRot (const Coord &c) |
|
static constexpr void | setCRot (Coord &c, const CRot &v) |
|
static constexpr const DPos & | getDPos (const Deriv &d) |
|
static constexpr void | setDPos (Deriv &d, const DPos &v) |
|
static constexpr const DRot & | getDRot (const Deriv &d) |
|
static constexpr void | setDRot (Deriv &d, const DRot &v) |
|
static constexpr const char * | Name () |
|
template<typename T > |
static constexpr void | set (Coord &c, T x, T y, T) |
|
template<typename T > |
static constexpr void | get (T &x, T &y, T &z, const Coord &c) |
|
template<typename T > |
static constexpr void | add (Coord &c, T x, T y, T) |
|
template<typename T > |
static constexpr void | set (Deriv &c, T x, T y, T) |
|
template<typename T > |
static constexpr void | get (T &x, T &y, T &z, const Deriv &c) |
|
template<typename T > |
static constexpr void | set (Deriv &c, T x, T y, T, T vrot, T, T) |
|
template<typename T > |
static constexpr void | add (Deriv &c, T x, T y, T) |
|
static Deriv | randomDeriv (Real minMagnitude, Real maxMagnitude) |
| Return a Deriv with random value. Each entry with magnitude smaller than the given value. More...
|
|
static Deriv | coordDifference (const Coord &c1, const Coord &c2) |
|
static Coord | interpolate (const type::vector< Coord > &ancestors, const type::vector< Real > &coefs) |
|
static Deriv | interpolate (const type::vector< Deriv > &ancestors, const type::vector< Real > &coefs) |
|
static constexpr Real | crosscross (const Vec2 &f, const Real &dtheta, const Vec2 &OP) |
| specialized version of the double cross product: a * ( b * c ) for the variation of torque applied to the frame due to a small rotation with constant force. More...
|
|
static constexpr Vec2 | crosscross (const Real &omega, const Real &dtheta, const Vec2 &OP) |
| specialized version of the double cross product: a * ( b * c ) for point acceleration More...
|
|
static constexpr CRot | rotationEuler (Real x, Real, Real) |
| create a rotation from Euler angles (only the first is used). For homogeneity with 3D. More...
|
|