Class CircleCircleR

Defined in Program listing for file mechanics/src/collision/native/bodies/CircleCircleR.hpp

class CircleCircleR : public CircularR, public std::enable_shared_from_this<CircleCircleR>

Two disks relation - Inherits from LagrangianScleronomousR.

Public Functions

CircleCircleR(double rdisk1, double rdisk2)

Constructor.

Parameters
  • rdisk1: radius

  • rdisk2: radius

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