// // clamp.h // limit // // Created by Sam Jaffe on 12/9/23. // #pragma once #include #include namespace math { template T const & clamp(T const & value, T const & min, T const & max) { return std::max(min, std::min(value, max)); } }