Public Member Functions | Public Attributes

bl7::rigidbodies2::Link Class Reference

#include <Link.h>

Inheritance diagram for bl7::rigidbodies2::Link:
bl7::rigidbodies2::ContactGenerator bl7::rigidbodies2::Cable

List of all members.

Public Member Functions

virtual ~Link (void)
 Link (RigidBody *body, const ml7::Vector2 &local_point, const ml7::Vector2 &world_point)
 Link (RigidBody *body1, RigidBody *body2, const ml7::Vector2 &local_point1, const ml7::Vector2 &local_point2)
RigidBodyget_body1 () const
RigidBodyget_body2 () const
const ml7::Vector2get_point1 () const
const ml7::Vector2get_point2 () const

Public Attributes

RigidBody_body1
RigidBody_body2
ml7::Vector2 _point1
ml7::Vector2 _point2

Detailed Description

Base class for 2d rigid body links connecting one particle to the world or two particles with each other and generating contacts if the constraints are violated.


Constructor & Destructor Documentation

virtual bl7::rigidbodies2::Link::~Link ( void   )  [inline, virtual]

Destructor.

bl7::rigidbodies2::Link::Link ( RigidBody body,
const ml7::Vector2 local_point,
const ml7::Vector2 world_point 
) [inline]

Explicit constructor with parameters for one particle connected to the world.

bl7::rigidbodies2::Link::Link ( RigidBody body1,
RigidBody body2,
const ml7::Vector2 local_point1,
const ml7::Vector2 local_point2 
) [inline]

Explicit constructor with parameters for two rigid bodies linked together.


Member Function Documentation

RigidBody* bl7::rigidbodies2::Link::get_body1 (  )  const [inline]

Returns the first rigid body conntected through the link.

RigidBody* bl7::rigidbodies2::Link::get_body2 (  )  const [inline]

Returns the second rigid body (or null) conntected through the link.

const ml7::Vector2& bl7::rigidbodies2::Link::get_point1 (  )  const [inline]

The local connection point of the first rigid body.

const ml7::Vector2& bl7::rigidbodies2::Link::get_point2 (  )  const [inline]

The local connection point of the second rigid body or the world link point.


Member Data Documentation

The first rigid body connected through the link.

The second rigid body (or null) conntected through the link.

The local connection point of the first rigid body.

The local connection point of the second rigid body or the world link point.


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