File mechanics/src/collision/native/bodies/CircleCircleR.hpp

Go to the source code of this file

class CircleCircleR : public CircularR, public std11::enable_shared_from_this<CircleCircleR>
#include <CircleCircleR.hpp>

Two disks relation - Inherits from LagrangianScleronomousR.

Public Functions

CircleCircleR(double rdisk1, double rdisk2)

Constructor.

Parameters
  • rdisk1: radius
  • rdisk2: radius

~CircleCircleR()
ACCEPT_VISITORS()

visitors hook

void computeh(SiconosVector &q, SiconosVector &z, SiconosVector &y)

computeh implementation, see LagrangianScleronomousR

Parameters
  • q:
  • z:
  • y:

void computeJachq(SiconosVector &q, SiconosVector &z)

computeh implementation, see LagrangianScleronomousR

Parameters
  • q:
  • z:

double distance(double x1, double y1, double r1, double x2, double y2, double r2)

compute distance between 2 disks

Return
distance
Parameters
  • x1: x position of first disk
  • y1: y position of first disk
  • r1: radius of first disk
  • x2: x position of second disk
  • y2: y position of second disk
  • r2: radius of second disk

Private Functions

CircleCircleR()
ACCEPT_SERIALIZATION(CircleCircleR)

serialization hooks