Function overlapBoundingBoxes

  • Parameters

    • box1: Box

      an axis-aligned bounding box

    • box2: Box

      an axis-aligned bounding box

    • Optional epsilon: number = EPSILON

      an optional epsilon, positive value (default) is inclusive, negative is exclusive.

    Returns boolean

    true if the bounding boxes overlap each other

    Description

    Test if two axis-aligned bounding boxes overlap each other. By default, the boundaries are treated as inclusive.