AGX Dynamics  2.35.0.1
agx::HingeFrame Class Reference

Specialization for the constraint frame class that add convenient accessors/mutator methods for manipulation of the geometry of the frame for a Hinge. More...

#include <Hinge.h>

+ Inheritance diagram for agx::HingeFrame:

Public Member Functions

 HingeFrame ()
 Default constructor: rotational axis is along Z. More...
 
 HingeFrame (const Vec3 &center, const Vec3 &axis)
 
 ~HingeFrame ()
 
const Vec3 & getAxis () const
 Get the hinge axis. More...
 
void setAxis (const Vec3 &axis)
 Sets the axis of the hinge in world coordinates. More...
 
void setCenter (const Vec3 &center)
 Sets the center of the hinge in world coordinates. More...
 
void setHinge (const Vec3 &center, const Vec3 &axis)
 Sets all parameters needed to create a hinge. More...
 

Detailed Description

Specialization for the constraint frame class that add convenient accessors/mutator methods for manipulation of the geometry of the frame for a Hinge.

Definition at line 28 of file Hinge.h.

Constructor & Destructor Documentation

◆ HingeFrame() [1/2]

agx::HingeFrame::HingeFrame ( )

Default constructor: rotational axis is along Z.

◆ HingeFrame() [2/2]

agx::HingeFrame::HingeFrame ( const Vec3 &  center,
const Vec3 &  axis 
)
Parameters
center- Hinge center position in world coordinates
axis- Hinge axis in world coordinates

◆ ~HingeFrame()

agx::HingeFrame::~HingeFrame ( )
inline

Definition at line 42 of file Hinge.h.

Member Function Documentation

◆ getAxis()

const Vec3& agx::HingeFrame::getAxis ( ) const

Get the hinge axis.

Returns
Hinge axis

◆ setAxis()

void agx::HingeFrame::setAxis ( const Vec3 &  axis)

Sets the axis of the hinge in world coordinates.

Parameters
axis- Hinge axis in world coordinates

◆ setCenter()

void agx::HingeFrame::setCenter ( const Vec3 &  center)

Sets the center of the hinge in world coordinates.

Parameters
center- Hinge center position in world coordinates

◆ setHinge()

void agx::HingeFrame::setHinge ( const Vec3 &  center,
const Vec3 &  axis 
)

Sets all parameters needed to create a hinge.

Parameters
center- Hinge center position in world coordinates
axis- Hinge axis in world coordinates

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