Units.hh
Go to the documentation of this file.
1 
39 #ifndef CRL_MULTISENSE_UNITS_HH
40 #define CRL_MULTISENSE_UNITS_HH
41 
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 */
Constants.hh
crl
Definition: Legacy/details/channel.cc:61
crl::multisense::details::utility::radiansToDegrees
Type radiansToDegrees(Type const &value)
Definition: Units.hh:50
crl::multisense::details::utility::degreesToRadians
Type degreesToRadians(Type const &value)
Definition: Units.hh:55
multisense
Definition: factory.cc:39
crl::multisense::details::utility::constants::pi
const double pi
Definition: Constants.cc:47


multisense_lib
Author(s):
autogenerated on Thu Apr 17 2025 02:49:09