Fixed header formatting

This commit is contained in:
Leonetienne 2021-11-15 15:44:39 +01:00
parent 059251b846
commit e699a20f11
3 changed files with 7 additions and 3 deletions

View File

@ -39,6 +39,7 @@
<ClInclude Include="Vector2.h" /> <ClInclude Include="Vector2.h" />
<ClInclude Include="Vector3.h" /> <ClInclude Include="Vector3.h" />
<ClInclude Include="Vector4.h" /> <ClInclude Include="Vector4.h" />
<ClInclude Include="version.h" />
</ItemGroup> </ItemGroup>
<PropertyGroup Label="Globals"> <PropertyGroup Label="Globals">
<VCProjectVersion>16.0</VCProjectVersion> <VCProjectVersion>16.0</VCProjectVersion>

View File

@ -71,5 +71,8 @@
<ClInclude Include="TrapazoidalPrismCollider.h"> <ClInclude Include="TrapazoidalPrismCollider.h">
<Filter>Headerdateien</Filter> <Filter>Headerdateien</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="version.h">
<Filter>Headerdateien</Filter>
</ClInclude>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -25,7 +25,7 @@ namespace Eule
//! Compares two double values with a given accuracy //! Compares two double values with a given accuracy
[[nodiscard]] static constexpr bool Similar(const double a, const double b, const double epsilon = 0.00001); [[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` //! Will return a random double between `0` and `1`
static double Random(); static double Random();
@ -89,12 +89,12 @@ namespace Eule
return (a * it) + (b * t); 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; 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; return Abs(a - b) <= epsilon;
} }