mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-30 20:13:22 +08:00
spelling: calculate
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
@@ -12,7 +12,7 @@ layout (binding = 1) uniform sampler2D reveal;
|
||||
// epsilon number
|
||||
const float EPSILON = 0.00001f;
|
||||
|
||||
// caluclate floating point numbers equality accurately
|
||||
// calculate floating point numbers equality accurately
|
||||
bool isApproximatelyEqual(float a, float b)
|
||||
{
|
||||
return abs(a - b) <= (abs(a) < abs(b) ? abs(b) : abs(a)) * EPSILON;
|
||||
|
||||
Reference in New Issue
Block a user