Main Page
Namespaces
Classes
Files
File List
File Members
sensor_api
source
LibMultiSense
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 "
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:56
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 Apr 6 2019 02:16:46