mrs_lib
Various reusable classes, functions and utilities for use in MRS projects
vector_converter.h
Go to the documentation of this file.
1
// clang: MatousFormat
6
#ifndef VECTOR_CONVERTER_H
7
#define VECTOR_CONVERTER_H
8
9
#include <tuple>
10
11
#include <
mrs_lib/impl/vector_converter.hpp
>
12
13
namespace
mrs_lib
14
{
15
33
template
<
typename
ret_t,
typename
in_t>
34
ret_t
convert
(
const
in_t& in)
35
{
36
const
auto
[x, y, z] = impl::convertFrom(in);
37
ret_t ret;
38
impl::convertTo(ret, x, y, z);
39
return
ret;
40
}
41
42
}
43
44
#endif // VECTOR_CONVERTER_H
mrs_lib::convert
ret_t convert(const in_t &in)
Converts between different vector representations.
Definition:
vector_converter.h:34
vector_converter.hpp
Implements the convertTo() and convertFrom() functions for conversion between different vector repres...
mrs_lib
All mrs_lib functions, classes, variables and definitions are contained in this namespace.
Definition:
attitude_converter.h:29
include
mrs_lib
vector_converter.h
Generated by
1.8.17