Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
conversions.h
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
#pragma once
9
10
#include <
momentum/io/marker/coordinate_system.h
>
11
#include <
momentum/math/types.h
>
12
13
namespace
momentum
{
14
32
template
<
typename
T>
33
[[nodiscard]]
Vector3<T>
34
toMomentumVector3
(
const
Vector3<T>
& vec,
UpVector
up =
UpVector::Z
,
Unit
unit =
Unit::MM
);
35
53
template
<
typename
T>
54
[[nodiscard]]
Vector3<T>
55
toMomentumVector3
(
const
Vector3<T>
& vec,
UpVector
up,
const
std::string& unitStr);
56
57
}
// namespace momentum
coordinate_system.h
types.h
momentum
Definition
aligned.h:15
momentum::UpVector
UpVector
This enumeration is used to define the primary up vector directions for various coordinate systems an...
Definition
coordinate_system.h:14
momentum::UpVector::Z
@ Z
Z-axis up vector.
Definition
coordinate_system.h:17
momentum::Unit
Unit
An enumeration representing the units of measurement used in marker data files.
Definition
coordinate_system.h:22
momentum::Unit::MM
@ MM
Millimeters.
Definition
coordinate_system.h:26
momentum::toMomentumVector3
Vector3< T > toMomentumVector3(const Vector3< T > &vec, UpVector up, Unit unit)
This function converts a 3D vector in the mocap marker coordinate system to the Momentum coordinate s...
Definition
conversions.cpp:67
momentum::Vector3
Vector< T, 3 > Vector3
Definition
types.h:236
io
marker
conversions.h
Generated on
for Momentum by
1.15.0