Files
ScopEngine/Runtime/Includes/Maths/MathsUtils.h
Kbz-8 cd7e5ad26f yes
2025-06-16 15:18:27 +02:00

27 lines
629 B
C++

#ifndef __SCOP_MATHS_UTILS__
#define __SCOP_MATHS_UTILS__
#include <concepts>
namespace Scop
{
template<typename T>
[[nodiscard]] constexpr T Mod(T x, T y) noexcept;
template<std::floating_point T>
[[nodiscard]] constexpr T DegreeToRadian(T degrees) noexcept;
template<std::floating_point T>
[[nodiscard]] constexpr T RadianToDegree(T radians) noexcept;
template<typename T>
[[nodiscard]] constexpr T Clamp(T value, T min, T max) noexcept;
template<typename T, typename T2>
[[nodiscard]] constexpr T Lerp(const T& from, const T& to, const T2& interpolation) noexcept;
}
#include <Maths/MathsUtils.inl>
#endif