AGX Dynamics  2.38.0.2
agx::GenericConstraintBodyData Class Reference

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

#include <GenericConstraintData.h>

Public Member Functions

 GenericConstraintBodyData ()
 Construct given number of rows in the elementary constraint. More...
 
void addJacobian (UInt row, const Vec3 &spatial, const Vec3 &rotational)
 Add Jacobian for given row as spatial and rotation vectors. More...
 
const Vec3Vector & getJacobian () const
 
void reset (UInt numRows)
 Resets all vectors to (0, 0, 0). More...
 
void setJacobian (UInt row, const Vec3 &spatial, const 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 27 of file GenericConstraintData.h.

Constructor & Destructor Documentation

◆ GenericConstraintBodyData()

agx::GenericConstraintBodyData::GenericConstraintBodyData ( )

Construct given number of rows in the elementary constraint.

Member Function Documentation

◆ addJacobian()

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

Add 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)

◆ getJacobian()

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

◆ reset()

void agx::GenericConstraintBodyData::reset ( UInt  numRows)

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

◆ setJacobian()

void agx::GenericConstraintBodyData::setJacobian ( UInt  row,
const Vec3 &  spatial,
const 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: