Program listing for file mechanics/src/collision/native/bodies/SphereLDSSphereLDSR.hpp#
Return to documentation for this file
1#ifndef SphereLDSSphereLDSR_h
2#define SphereLDSSphereLDSR_h
3
4#include "MechanicsFwd.hpp"
5#include "LagrangianScleronomousR.hpp"
6
7class SphereLDSSphereLDSR : public LagrangianScleronomousR, public std::enable_shared_from_this<SphereLDSSphereLDSR>
8{
9private:
10 ACCEPT_SERIALIZATION(SphereLDSSphereLDSR);
11
12 double r1, r2, r1pr2;
13
14public:
15
16
17 SphereLDSSphereLDSR(double r1, double r2);
18
19 double distance(double, double, double, double, double, double, double, double);
20
21 using LagrangianScleronomousR::computeh;
22
23 void computeh(const BlockVector& q, BlockVector& z, SiconosVector& y);
24
25
26 void computeJachq(const BlockVector& q, BlockVector& z);
27
28 ACCEPT_VISITORS();
29
30};
31#endif