Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
momentum::PositionDataT< T > Struct Template Reference

3D position constraint data More...

#include <position_error_function.h>

Inheritance diagram for momentum::PositionDataT< T >:

Public Member Functions

 PositionDataT (const Vector3< T > &inOffset, const Vector3< T > &inTarget, size_t pIndex, float w, const std::string &n="")
Public Member Functions inherited from momentum::ConstraintData
 ConstraintData (size_t pIndex, float w, const std::string &n="")

Public Attributes

Vector3< T > offset
 Positional offset in the parent joint space.
Vector3< T > target
 Target position.
Public Attributes inherited from momentum::ConstraintData
size_t parent = kInvalidIndex
 Parent joint index this constraint is under.
float weight = 0.0f
 Weight of the constraint.
std::string name = {}
 Name of the constraint.

Detailed Description

template<typename T>
struct momentum::PositionDataT< T >

3D position constraint data

Definition at line 16 of file position_error_function.h.

Constructor & Destructor Documentation

◆ PositionDataT()

template<typename T>
momentum::PositionDataT< T >::PositionDataT ( const Vector3< T > & inOffset,
const Vector3< T > & inTarget,
size_t pIndex,
float w,
const std::string & n = "" )
inlineexplicit

Definition at line 22 of file position_error_function.h.

Member Data Documentation

◆ offset

template<typename T>
Vector3<T> momentum::PositionDataT< T >::offset

Positional offset in the parent joint space.

Definition at line 18 of file position_error_function.h.

Referenced by momentum::PositionErrorFunctionT< T >::evalFunction().

◆ target

template<typename T>
Vector3<T> momentum::PositionDataT< T >::target

Target position.

Definition at line 20 of file position_error_function.h.

Referenced by momentum::PositionErrorFunctionT< T >::evalFunction().


The documentation for this struct was generated from the following files: