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 */
Type radiansToDegrees(Type const &value)
Definition: Units.hh:50
Definition: channel.cc:56
Type degreesToRadians(Type const &value)
Definition: Units.hh:55


multisense_lib
Author(s):
autogenerated on Sat Apr 6 2019 02:16:46