JKSV/include/mathutil.hpp
2025-10-30 18:11:16 -04:00

14 lines
281 B
C++

#pragma once
namespace math
{
template <typename Type>
requires std::integral<Type> || std::floating_point<Type>
class Util
{
public:
static inline Type absolute_distance(Type a, Type b) noexcept { return a > b ? a - b : b - a; }
};
}