math docs
    Preparing search index...

    Function union

    • Computes the union of two bounding boxes Returns a Box2 that encompasses both input boxes

      Parameters

      • out: box2.Box2

        The output Box2

      • boxA: readonly [number, number, number, number]

        The first Box2

      • boxB: readonly [number, number, number, number]

        The second Box2

      Returns box2.Box2

      The union Box2