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
11#include <momentum/math/types.h>
12
13namespace momentum {
14
32template <typename T>
33[[nodiscard]] Vector3<T>
35
53template <typename T>
54[[nodiscard]] Vector3<T>
55toMomentumVector3(const Vector3<T>& vec, UpVector up, const std::string& unitStr);
56
57} // namespace momentum
UpVector
This enumeration is used to define the primary up vector directions for various coordinate systems an...
@ Z
Z-axis up vector.
Unit
An enumeration representing the units of measurement used in marker data files.
@ MM
Millimeters.
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...
Vector< T, 3 > Vector3
Definition types.h:236