init
This commit is contained in:
9
TempleWare-CS2/source/templeware/utils/math/math.h
Normal file
9
TempleWare-CS2/source/templeware/utils/math/math.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#pragma once
|
||||
#include <algorithm>
|
||||
|
||||
namespace Math {
|
||||
template <typename T>
|
||||
T clamp(T value, T min, T max) {
|
||||
return std::min(std::max(value, min), max);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user