spelling: calculate

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref
2023-01-18 08:34:31 -05:00
parent 3dff8b87c6
commit 36b44583ff

View File

@@ -12,7 +12,7 @@ layout (binding = 1) uniform sampler2D reveal;
// epsilon number // epsilon number
const float EPSILON = 0.00001f; const float EPSILON = 0.00001f;
// caluclate floating point numbers equality accurately // calculate floating point numbers equality accurately
bool isApproximatelyEqual(float a, float b) bool isApproximatelyEqual(float a, float b)
{ {
return abs(a - b) <= (abs(a) < abs(b) ? abs(b) : abs(a)) * EPSILON; return abs(a - b) <= (abs(a) < abs(b) ? abs(b) : abs(a)) * EPSILON;