Units.hh
Go to the documentation of this file.
00001 
00039 #ifndef CRL_MULTISENSE_UNITS_HH
00040 #define CRL_MULTISENSE_UNITS_HH
00041 
00042 #include "Constants.hh"
00043 
00044 namespace crl {
00045 namespace multisense {
00046 namespace details {
00047 namespace utility {
00048 
00049   template <class Type>
00050   inline Type radiansToDegrees(Type const& value) {
00051       return ((value) * (180.0 / constants::pi));
00052   }
00053   
00054   template <class Type>
00055   inline Type degreesToRadians(Type const& value) {
00056       return ((value) * (constants::pi / 180.0));
00057   }
00058 
00059 }}}} // namespaces
00060 
00061 #endif /* #ifndef CRL_MULTISENSE_UNITS_HH */


multisense_lib
Author(s):
autogenerated on Mon Oct 9 2017 03:06:21