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

Go to the source code of this file

class Disk : public CircularDS, public std11::enable_shared_from_this<Disk>
#include <Disk.hpp>

Definition of a 2D disk - Inherits from LagrangianDS.

Public Functions

Disk(double radius, double mass, SP::SiconosVector position, SP::SiconosVector velocity)

Constructor.

Parameters
  • radius:
  • mass:
  • position: vector
  • velocity: vector

virtual ~Disk()

destructor

ACCEPT_BASE_VISITORS(LagrangianDS)

visitors hook

Protected Functions

Disk()

Private Functions

ACCEPT_SERIALIZATION(Disk)

serialization hooks

void MassSetup()