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

Go to the source code of this file

class DiskPlanR : public LagrangianScleronomousR, public std11::enable_shared_from_this<DiskPlanR>
#include <DiskPlanR.hpp>

disk - plan relation - Inherits from LagrangianScleronomousR

Public Functions

DiskPlanR(double r, double A, double B, double C)

Infinite Plan.

Parameters
  • r: disk radius
  • A: component of line equation Ax + By + C = 0
  • B: component of line equation Ax + By + C = 0
  • C: component of line equation Ax + By + C = 0

DiskPlanR(double disk, double A, double B, double C, double xCenter, double yCenter, double width)

Finite or infinite Plan (segment)

Parameters
  • disk: radius
  • A:
  • B:
  • C:
  • xCenter:
  • yCenter:
  • width:

DiskPlanR(double, double, double, double, double)

Finite Plan.

~DiskPlanR()
ACCEPT_VISITORS()

visitor hooks

void computeh(SiconosVector &q, SiconosVector &z, SiconosVector &y)
void computeJachq(SiconosVector &q, SiconosVector &z)
double distance(double x, double y, double r) const
bool equal(double, double, double, double) const
bool equal(double, double, double, double, double, double, double) const
bool equal(const DiskPlanR&) const
double getA() const
double getB() const
double getC() const
double gethypotAB() const
double getRadius() const
double getWidth() const
double getXCenter() const
double getYCenter() const
bool isFinite() const

Private Functions

DiskPlanR()
ACCEPT_SERIALIZATION(DiskPlanR)

serialization hooks

void init(double, double, double, double, double, double, double)

Private Members

double A
double A2
double AB
double AC
double B
double B2
double BC
double C
bool finite
double halfWidth
double r
double sqrA2pB2
double width
double x1
double x2
double xCenter
double y1
double y2
double yCenter