virtual void constrainRotation(pointConstraint &) const
Apply and accumulate rotational constraints.
point centreOfRotation_
Centre of rotation on line.
vector direction_
Direction of the constraining line.
virtual bool read(const dictionary &sDoFRBMCCoeff)
Update properties from given dictionary.
Translation constraint on the centre of rotation: may only move along a line.
Base class for defining constraints for sixDoF motions.
line(const word &name, const dictionary &sDoFRBMCDict, const sixDoFRigidBodyMotion &motion)
Construct from components.
virtual void setCentreOfRotation(point &) const
Set the centre of rotation to the projection of the.
virtual void constrainTranslation(pointConstraint &) const
Apply and accumulate translational constraints.
Translation constraint on the centre of rotation: fixed in space.
Six degree of freedom motion for a rigid body.
const word & name() const
Return the name.
virtual autoPtr< sixDoFRigidBodyMotionConstraint > clone() const
Construct and return a clone.
TypeName("line")
Runtime type information.
virtual void write(Ostream &) const
Write.