phaser - v4.0.0-rc.4
    Preparing search index...

    Function Within

    • Checks if the two values are within the given tolerance of each other.

      Parameters

      • a: number

        The first value to use in the calculation.

      • b: number

        The second value to use in the calculation.

      • tolerance: number

        The tolerance. Anything equal to or less than this value is considered as being within range.

      Returns boolean