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

Point-on-plane or Point-in-half-plane constraint data. More...

#include <plane_error_function.h>

Inheritance diagram for momentum::PlaneDataT< T >:

Public Member Functions

 PlaneDataT (const Vector3< T > &inOffset, const Vector3< T > &inNormal, const T inD, 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
Vector3< T > normal
T d
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::PlaneDataT< T >

Point-on-plane or Point-in-half-plane constraint data.

The constraint uses the plane equation: x.dot(normal) - d = 0; use -d instead of +d to be backwards compatible with previous implementation.

Definition at line 18 of file plane_error_function.h.

Constructor & Destructor Documentation

◆ PlaneDataT()

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

Definition at line 23 of file plane_error_function.h.

Member Data Documentation

◆ d

template<typename T>
T momentum::PlaneDataT< T >::d

◆ normal

template<typename T>
Vector3<T> momentum::PlaneDataT< T >::normal

◆ offset

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

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