Add geom::frac

This commit is contained in:
Nikita Lisitsa 2021-07-15 18:56:53 +03:00
parent e8076f528f
commit 2b46b38da2

View file

@ -25,6 +25,12 @@ namespace psemek::geom
return x * x;
}
template <typename T>
auto frac(T const & x)
{
return x - std::floor(x);
}
template <typename T>
T deg(T x)
{