From e699a20f11cc35562f5283c6f5b828988b9e71f4 Mon Sep 17 00:00:00 2001 From: Leonetienne Date: Mon, 15 Nov 2021 15:44:39 +0100 Subject: [PATCH] Fixed header formatting --- Eule/Eule.vcxproj | 1 + Eule/Eule.vcxproj.filters | 3 +++ Eule/Math.h | 6 +++--- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Eule/Eule.vcxproj b/Eule/Eule.vcxproj index 0505be7..269a6be 100644 --- a/Eule/Eule.vcxproj +++ b/Eule/Eule.vcxproj @@ -39,6 +39,7 @@ + 16.0 diff --git a/Eule/Eule.vcxproj.filters b/Eule/Eule.vcxproj.filters index dc84c03..3b2e0a2 100644 --- a/Eule/Eule.vcxproj.filters +++ b/Eule/Eule.vcxproj.filters @@ -71,5 +71,8 @@ Headerdateien + + Headerdateien + \ No newline at end of file diff --git a/Eule/Math.h b/Eule/Math.h index 482640f..d8b9ef3 100644 --- a/Eule/Math.h +++ b/Eule/Math.h @@ -25,7 +25,7 @@ namespace Eule //! Compares two double values with a given accuracy [[nodiscard]] static constexpr bool Similar(const double a, const double b, const double epsilon = 0.00001); - + //! Will return a random double between `0` and `1` static double Random(); @@ -89,12 +89,12 @@ namespace Eule return (a * it) + (b * t); } - inline constexpr double Math::Abs(const double a) + constexpr inline double Math::Abs(const double a) { return (a > 0.0) ? a : -a; } - inline constexpr bool Math::Math::Similar(const double a, const double b, const double epsilon) + constexpr inline bool Math::Similar(const double a, const double b, const double epsilon) { return Abs(a - b) <= epsilon; }