mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-03-21 17:24:37 -05:00
14 lines
281 B
C++
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; }
|
|
};
|
|
|
|
}
|