Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
error_function_types.cpp
Go to the documentation of this file.
1
/*
2
* Copyright (c) Meta Platforms, Inc. and affiliates.
3
*
4
* This source code is licensed under the MIT license found in the
5
* LICENSE file in the root directory of this source tree.
6
*/
7
8
#include "
momentum/character_solver/error_function_types.h
"
9
10
namespace
momentum
{
11
12
std::string_view
toString
(
VertexConstraintType
type) {
13
switch
(type) {
14
case
VertexConstraintType::Position
:
15
return
"Position"
;
16
case
VertexConstraintType::Plane
:
17
return
"Plane"
;
18
case
VertexConstraintType::Normal
:
19
return
"Normal"
;
20
case
VertexConstraintType::SymmetricNormal
:
21
return
"SymmetricNormal"
;
22
}
23
return
"Unknown"
;
24
}
25
26
}
// namespace momentum
error_function_types.h
Shared types used across error function hierarchies.
momentum
Definition
aligned.h:15
momentum::toString
std::string_view toString(const LimitType type)
Definition
parameter_limits.cpp:16
momentum::VertexConstraintType
VertexConstraintType
Type of vertex constraint mode.
Definition
error_function_types.h:62
momentum::VertexConstraintType::Plane
@ Plane
Definition
error_function_types.h:64
momentum::VertexConstraintType::Position
@ Position
Definition
error_function_types.h:63
momentum::VertexConstraintType::Normal
@ Normal
Definition
error_function_types.h:65
momentum::VertexConstraintType::SymmetricNormal
@ SymmetricNormal
Definition
error_function_types.h:66
character_solver
error_function_types.cpp
Generated on
for Momentum by
1.15.0