Program listing for file mechanics/src/collision/native/bodies/SphereNEDSSphereNEDSR.hpp#

 1#ifndef SphereNEDSSphereNEDSR_h
 2#define SphereNEDSSphereNEDSR_h
 3
 4#include "MechanicsFwd.hpp"
 5#include "NewtonEuler3DR.hpp"
 6class SphereNEDSSphereNEDSR
 7    : public NewtonEuler3DR,
 8      public std::enable_shared_from_this<SphereNEDSSphereNEDSR> {
 9private:
10
11  ACCEPT_SERIALIZATION(SphereNEDSSphereNEDSR);
12
13  double r1, r2, r1pr2;
14
15  SphereNEDSSphereNEDSR(){};
16
17public:
18
19  SphereNEDSSphereNEDSR(double r1, double r2);
20
21  double distance(double, double, double, double, double, double, double,
22                  double);
23
24
25  void computeh(double time, const BlockVector &q0, SiconosVector &y) override;
26
27
28
29  ACCEPT_VISITORS();
30};
31#endif