@writegames.com/game-math
    Preparing search index...

    Function equal

    • Checks if two values are approximately equal, using an epsilon to account for floating point errors.

      Parameters

      • a: number

        Value a

      • b: number

        Value b

      Returns boolean

      Whether or not they're about equal