#include <Rod.h>
Public Member Functions | |
| virtual | ~Rod (void) |
| Rod (Particle *particle1, Particle *particle2, const float length) | |
| float | get_length () const |
| void | set_length (const float length) |
Public Attributes | |
| float | _length |
A contact generator that generates a contact if the the two particles connected through a rod are moving apart or towards each other.
| virtual bl7::particles2::Rod::~Rod | ( | void | ) | [inline, virtual] |
Destructor.
| bl7::particles2::Rod::Rod | ( | Particle * | particle1, | |
| Particle * | particle2, | |||
| const float | length | |||
| ) | [inline] |
Explicit constructor with parameters for the particles linked together as well as the length of the rod.
| float bl7::particles2::Rod::get_length | ( | ) | const [inline] |
Returns the length of the rod.
| void bl7::particles2::Rod::set_length | ( | const float | length | ) | [inline] |
Sets the length of the rod.
The length of the rod.
1.7.1