AGX Dynamics  2.35.0.1
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

◆ GenericConstraintBodyData()

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

◆ getJacobian()

const agx::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 ( )

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

◆ setJacobian()

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: