GeneralUtilities.h
Go to the documentation of this file.
00001 
00007 #ifndef GENERALUTILITIES_H
00008 #define GENERALUTILITIES_H
00009 
00011 namespace Robodyn
00012 {
00016 template <class T>
00017 void limit(const T& minVal, const T& maxVal, T& limitVal)
00018 {
00019     if (limitVal > maxVal) limitVal = maxVal;
00020     else if (limitVal < minVal) limitVal = minVal;
00021 }
00022 }
00023 
00024 #endif


robodyn_utilities
Author(s):
autogenerated on Thu Jun 6 2019 18:56:07