27 const std::string& n =
"")
44 const T& lossC = T(1))
50 const T& lossC = T(1))
53 character.parameterTransform,
78 const T& lossC = T(1))
84 const T& lossC = T(1))
87 character.parameterTransform,
101 std::array<Eigen::Matrix<T, 1, 3>, 1>& dfdv)
const final;
114 const T& lossC = T(1))
120 const T& lossC = T(1))
123 character.parameterTransform,
137 std::array<Eigen::Matrix<T, 1, 3>, 1>& dfdv)
const final;
FixedAxisAngleErrorFunctionT(const Skeleton &skel, const ParameterTransform &pt, const T &lossAlpha=GeneralizedLossT< T >::kL2, const T &lossC=T(1))
FixedAxisAngleErrorFunctionT(const Character &character, const T &lossAlpha=GeneralizedLossT< T >::kL2, const T &lossC=T(1))
void evalFunction(size_t constrIndex, const JointStateT< T > &state, Vector< T, 1 > &f, std::array< Vector3< T >, 1 > &v, std::array< Eigen::Matrix< T, 1, 3 >, 1 > &dfdv) const final
static constexpr float kLegacyWeight
static constexpr float kLegacyWeight
FixedAxisCosErrorFunctionT(const Character &character, const T &lossAlpha=GeneralizedLossT< T >::kL2, const T &lossC=T(1))
FixedAxisCosErrorFunctionT(const Skeleton &skel, const ParameterTransform &pt, const T &lossAlpha=GeneralizedLossT< T >::kL2, const T &lossC=T(1))
void evalFunction(size_t constrIndex, const JointStateT< T > &state, Vector< T, 1 > &f, std::array< Vector3< T >, 1 > &v, std::array< Eigen::Matrix< T, 1, 3 >, 1 > &dfdv) const final
void evalFunction(size_t constrIndex, const JointStateT< T > &state, Vector3< T > &f, std::array< Vector3< T >, 1 > &v, std::array< Matrix3< T >, 1 > &dfdv) const final
static constexpr float kLegacyWeight
FixedAxisDiffErrorFunctionT(const Skeleton &skel, const ParameterTransform &pt, const T &lossAlpha=GeneralizedLossT< T >::kL2, const T &lossC=T(1))
FixedAxisDiffErrorFunctionT(const Character &character, const T &lossAlpha=GeneralizedLossT< T >::kL2, const T &lossC=T(1))
static constexpr T kL2
Special-case alpha values that are either at a singularity in the general formula or simplify to a cl...
JointErrorFunctionT(const Skeleton &skel, const ParameterTransform &pt, const T &lossAlpha=GeneralizedLossT< T >::kL2, const T &lossC=T(1))
SkeletonT< float > Skeleton
Eigen::Matrix< T, 3, 3 > Matrix3
ParameterTransformT< float > ParameterTransform
Eigen::Matrix< T, Dim, 1, Options > Vector
Column vector alias (an Nx1 Eigen matrix).
A character model with skeletal structure, mesh, and optional components.
ConstraintData(size_t pIndex, float w, const std::string &n="")
Vector3< float > localAxis
FixedAxisDataT(const Vector3< T > &local, const Vector3< T > &global, size_t pIndex, float w, const std::string &n="")
Vector3< float > globalAxis
Represents the state of a joint with local and global transformations.