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

Go to the source code of this file

Two spheres relation - Inherits from LagrangianScleronomousR.

class SphereLDSSphereLDSR : public LagrangianScleronomousR, public std11::enable_shared_from_this<SphereLDSSphereLDSR>

Public Functions

SphereLDSSphereLDSR(double r1, double r2)

Constructor.

Parameters
  • r1: disk1 radius
  • r2: disk2 radius

ACCEPT_VISITORS()

visitors hook

void computeh(SiconosVector &q, SiconosVector &z, SiconosVector &y)
void computeJachq(SiconosVector &q, SiconosVector &z)
double distance(double, double, double, double, double, double, double, double)

Private Functions

SphereLDSSphereLDSR()
ACCEPT_SERIALIZATION(SphereLDSSphereLDSR)

serialization hooks

Private Members

double r1
double r1pr2
double r2