PointOnLine Class Reference

Two constraint equations. More...

#include <Constraint.h>

Inheritance diagram for PointOnLine:
Constraint PIMPLHandle< Constraint, ConstraintImpl, true >

List of all members.

Public Member Functions

 PointOnLine (MobilizedBody &lineBody_B, const UnitVec3 &defaultLineDirection_B, const Vec3 &defaultPointOnLine_B, MobilizedBody &followerBody_F, const Vec3 &defaultFollowerPoint_F)
PointOnLinesetLineDisplayHalfLength (Real)
PointOnLinesetPointDisplayRadius (Real)
Real getLineDisplayHalfLength () const
Real getPointDisplayRadius () const
PointOnLinesetDefaultLineDirection (const UnitVec3 &)
PointOnLinesetDefaultPointOnLine (const Vec3 &)
PointOnLinesetDefaultFollowerPoint (const Vec3 &)
MobilizedBodyIndex getLineMobilizedBodyIndex () const
MobilizedBodyIndex getFollowerMobilizedBodyIndex () const
const UnitVec3getDefaultLineDirection () const
const Vec3getDefaultPointOnLine () const
const Vec3getDefaultFollowerPoint () const
const UnitVec3getLineDirection (const State &) const
const Vec3getPointOnLine (const State &) const
const Vec3getFollowerPoint (const State &) const
Vec2 getPositionErrors (const State &) const
Vec2 getVelocityErrors (const State &) const
Vec2 getAccelerationErrors (const State &) const
Vec2 getMultipliers (const State &) const
const Vec2getForceOnFollowerPoint (const State &) const
 SimTK_INSERT_DERIVED_HANDLE_DECLARATIONS (PointOnLine, PointOnLineImpl, Constraint)

Detailed Description

Two constraint equations.

This constraint enforces that a point fixed to one body (the "follower body") must travel along a line fixed on another body (the "line body"). The constraint is enforced by an internal (non-working) scalar force acting at the spatial location of the follower point, directed in the plane for which the line is a normal, and equal and opposite on the two bodies.

The assembly condition is the same as the run-time constraint: the point has to be moved onto the line.


Constructor & Destructor Documentation

PointOnLine ( MobilizedBody lineBody_B,
const UnitVec3 defaultLineDirection_B,
const Vec3 defaultPointOnLine_B,
MobilizedBody followerBody_F,
const Vec3 defaultFollowerPoint_F 
)

Member Function Documentation

Vec2 getAccelerationErrors ( const State  )  const
const Vec3& getDefaultFollowerPoint (  )  const
const UnitVec3& getDefaultLineDirection (  )  const
const Vec3& getDefaultPointOnLine (  )  const
MobilizedBodyIndex getFollowerMobilizedBodyIndex (  )  const
const Vec3& getFollowerPoint ( const State  )  const
const Vec2& getForceOnFollowerPoint ( const State  )  const
const UnitVec3& getLineDirection ( const State  )  const
Real getLineDisplayHalfLength (  )  const
MobilizedBodyIndex getLineMobilizedBodyIndex (  )  const
Vec2 getMultipliers ( const State  )  const
Real getPointDisplayRadius (  )  const
const Vec3& getPointOnLine ( const State  )  const
Vec2 getPositionErrors ( const State  )  const
Vec2 getVelocityErrors ( const State  )  const
PointOnLine& setDefaultFollowerPoint ( const Vec3  ) 
PointOnLine& setDefaultLineDirection ( const UnitVec3  ) 
PointOnLine& setDefaultPointOnLine ( const Vec3  ) 
PointOnLine& setLineDisplayHalfLength ( Real   ) 
PointOnLine& setPointDisplayRadius ( Real   ) 
SimTK_INSERT_DERIVED_HANDLE_DECLARATIONS ( PointOnLine  ,
PointOnLineImpl  ,
Constraint   
)

The documentation for this class was generated from the following file:

Generated on Wed Dec 30 11:05:14 2009 for SimTKcore by  doxygen 1.6.1