#pragma once #include namespace Math { template T clamp(T value, T min, T max) { return std::min(std::max(value, min), max); } }