Rename utils.h to avoid collision with library. (#2730)

This commit is contained in:
Jonathan Bennett
2023-08-17 20:22:34 -05:00
committed by GitHub
parent 05efd68097
commit 4767bd5497
4 changed files with 6 additions and 12 deletions

7
src/meshUtils.h Normal file
View File

@@ -0,0 +1,7 @@
#pragma once
/// C++ v17+ clamp function, limits a given value to a range defined by lo and hi
template <class T> constexpr const T &clamp(const T &v, const T &lo, const T &hi)
{
return (v < lo) ? lo : (hi < v) ? hi : v;
}