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