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

Aim constraint data: a local ray (point, dir) passes a global point target. More...

#include <aim_error_function.h>

Inheritance diagram for momentum::AimDataT< T >:

Public Member Functions

 AimDataT (const Vector3< T > &inLocalPt, const Vector3< T > &inLocalDir, 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 > localPoint
 The origin of the local ray.
Vector3< T > localDir
 The direction of the local ray.
Vector3< T > globalTarget
 The global aim target.
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::AimDataT< T >

Aim constraint data: a local ray (point, dir) passes a global point target.

Definition at line 16 of file aim_error_function.h.

Constructor & Destructor Documentation

◆ AimDataT()

template<typename T>
momentum::AimDataT< T >::AimDataT ( const Vector3< T > & inLocalPt,
const Vector3< T > & inLocalDir,
const Vector3< T > & inTarget,
size_t pIndex,
float w,
const std::string & n = {} )
inlineexplicit

Definition at line 24 of file aim_error_function.h.

Member Data Documentation

◆ globalTarget

template<typename T>
Vector3<T> momentum::AimDataT< T >::globalTarget

◆ localDir

template<typename T>
Vector3<T> momentum::AimDataT< T >::localDir

The direction of the local ray.

Definition at line 20 of file aim_error_function.h.

Referenced by momentum::AimDirErrorFunctionT< T >::evalFunction(), and momentum::AimDistErrorFunctionT< T >::evalFunction().

◆ localPoint

template<typename T>
Vector3<T> momentum::AimDataT< T >::localPoint

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