mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-11 14:43:34 +00:00
big refactoring ! ci skip
This commit is contained in:
26
runtime/Includes/Maths/MathsUtils.h
git.filemode.normal_file
26
runtime/Includes/Maths/MathsUtils.h
git.filemode.normal_file
@@ -0,0 +1,26 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user