Skip to content

Commit a17f55b

Browse files
committed
FloatEqual EPSILON parameter
1 parent af4a163 commit a17f55b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Frame/Source/Assignment/Utils.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ inline std::string PathFromAsset(std::string relativePath)
1212
return (std::filesystem::path(FRAME_ASSET_PATH) / std::move(relativePath)).generic_string();
1313
}
1414

15-
inline bool FloatEqual(const float a, const float b)
15+
inline bool FloatEqual(const float a, const float b, const float EPSILON = FLT_EPSILON)
1616
{
17-
return (std::abs(a - b) <= FLT_EPSILON);
17+
return (std::abs(a - b) <= EPSILON);
1818
}
1919

2020
} // namespace Utils

0 commit comments

Comments
 (0)