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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef SphereNEDSSphereNEDSR_h
#define SphereNEDSSphereNEDSR_h

#include "MechanicsFwd.hpp"
#include "NewtonEuler3DR.hpp"
class SphereNEDSSphereNEDSR : public NewtonEuler3DR,
  public std::enable_shared_from_this<SphereNEDSSphereNEDSR>
{
private:

  ACCEPT_SERIALIZATION(SphereNEDSSphereNEDSR);

  double r1, r2, r1pr2;

  SphereNEDSSphereNEDSR() {};

public:


  SphereNEDSSphereNEDSR(double r1, double r2);

  double distance(double, double, double, double, double, double, double, double);

  void computeh(double time, BlockVector& q0, SiconosVector& y);




  ACCEPT_VISITORS();

};
#endif