Math#fuzzyLessThan()

fuzzyLessThan(a, b, epsilon) → {boolean}

a is fuzzyLessThan b if it is less than b + epsilon.

Parameters
Name Type Argument Default Description
a number

The first number to compare.

b number

The second number to compare.

epsilon number <optional>
0.0001

The epsilon (a small value used in the calculation)

Returns
boolean -

True if a<b+epsilon

Source code: math/Math.js (Line 57)
doc_phaser
2017-02-14 10:54:53
Comments
Leave a Comment

Please login to continue.