AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
agx::GenericConstraintBodyData Class Reference

Constraint body data used with GenericElementaryConstraint containing the per body Jacobian data. More...

#include <GenericConstraintData.h>

Public Member Functions

 GenericConstraintBodyData (agx::UInt numRows)
 Construct given number of rows in the elementary constraint. More...
 
const agx::Vec3Vector & getJacobian () const
 
void reset ()
 Resets all vectors to (0, 0, 0). More...
 
void setJacobian (agx::UInt row, const agx::Vec3 &spatial, const agx::Vec3 &rotational)
 Assign Jacobian for given row as spatial and rotation vectors. More...
 

Detailed Description

Constraint body data used with GenericElementaryConstraint containing the per body Jacobian data.

Definition at line 107 of file GenericConstraintData.h.

Constructor & Destructor Documentation

agx::GenericConstraintBodyData::GenericConstraintBodyData ( agx::UInt  numRows)

Construct given number of rows in the elementary constraint.

Parameters
numRows- number of rows in the elementary constraint

Member Function Documentation

const agx::Vec3Vector& agx::GenericConstraintBodyData::getJacobian ( ) const
Returns
the Jacobian data where index 2 * i is spatial part and 2 * i + 1 the rotational
void agx::GenericConstraintBodyData::reset ( )

Resets all vectors to (0, 0, 0).

void agx::GenericConstraintBodyData::setJacobian ( agx::UInt  row,
const agx::Vec3 &  spatial,
const agx::Vec3 &  rotational 
)

Assign Jacobian for given row as spatial and rotation vectors.

Parameters
row- row in the Jacobian
spatial- spatial part of the Jacobian
rotational- rotational part of the Jacobain (ignored if particle)

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