diff options
author | crupest <crupest@outlook.com> | 2018-12-08 22:51:48 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-12-08 22:51:48 +0800 |
commit | 3ec1e536bd0ced5abcf82e84d1eee42960912b37 (patch) | |
tree | f2a283d4932f593fe32c2384d6ee86e6c5d8a5b4 /src/math_util.hpp | |
parent | b028e74a48de181ca078ad3bf4ababf4fa146cd3 (diff) | |
download | cru-3ec1e536bd0ced5abcf82e84d1eee42960912b37.tar.gz cru-3ec1e536bd0ced5abcf82e84d1eee42960912b37.tar.bz2 cru-3ec1e536bd0ced5abcf82e84d1eee42960912b37.zip |
Add single render objects.
Diffstat (limited to 'src/math_util.hpp')
-rw-r--r-- | src/math_util.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math_util.hpp b/src/math_util.hpp index b9830d6b..8f0741b8 100644 --- a/src/math_util.hpp +++ b/src/math_util.hpp @@ -9,7 +9,7 @@ namespace cru { - template <typename T, typename = std::enable_if_t<std::is_arithmetic_v<T>>> + template <typename T, typename = std::enable_if_t<std::is_arithmetic_v<T>>> float Coerce(const T n, const std::optional<T> min, const std::optional<T> max) { if (min.has_value() && n < min.value()) |