Public Member Functions | Public Attributes

bl7::particles2::Rod Class Reference

#include <Rod.h>

Inheritance diagram for bl7::particles2::Rod:
bl7::particles2::Link bl7::particles2::ContactGenerator

List of all members.

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

Detailed Description

A contact generator that generates a contact if the the two particles connected through a rod are moving apart or towards each other.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Member Data Documentation

The length of the rod.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines