We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af4a163 commit a17f55bCopy full SHA for a17f55b
Frame/Source/Assignment/Utils.hpp
@@ -12,9 +12,9 @@ inline std::string PathFromAsset(std::string relativePath)
12
return (std::filesystem::path(FRAME_ASSET_PATH) / std::move(relativePath)).generic_string();
13
}
14
15
-inline bool FloatEqual(const float a, const float b)
+inline bool FloatEqual(const float a, const float b, const float EPSILON = FLT_EPSILON)
16
{
17
- return (std::abs(a - b) <= FLT_EPSILON);
+ return (std::abs(a - b) <= EPSILON);
18
19
20
} // namespace Utils
0 commit comments