sensor_api
source
LibMultiSense
include
MultiSense
details
utility
Units.hh
Go to the documentation of this file.
1
39
#ifndef CRL_MULTISENSE_UNITS_HH
40
#define CRL_MULTISENSE_UNITS_HH
41
42
#include "
MultiSense/details/utility/Constants.hh
"
43
44
namespace
crl
{
45
namespace
multisense {
46
namespace
details {
47
namespace
utility {
48
49
template
<
class
Type>
50
inline
Type
radiansToDegrees
(Type
const
& value) {
51
return
((value) * (180.0 /
constants::pi
));
52
}
53
54
template
<
class
Type>
55
inline
Type
degreesToRadians
(Type
const
& value) {
56
return
((value) * (
constants::pi
/ 180.0));
57
}
58
59
}}}}
// namespaces
60
61
#endif
/* #ifndef CRL_MULTISENSE_UNITS_HH */
crl::multisense::details::utility::radiansToDegrees
Type radiansToDegrees(Type const &value)
Definition:
Units.hh:50
crl
Definition:
channel.cc:58
Constants.hh
crl::multisense::details::utility::degreesToRadians
Type degreesToRadians(Type const &value)
Definition:
Units.hh:55
crl::multisense::details::utility::constants::pi
double const pi
Definition:
Constants.cc:47
multisense_lib
Author(s):
autogenerated on Sat Jun 24 2023 03:01:21