math docs
    Preparing search index...

    Function expandByExtents

    • Widens a Box2 by a vector on both sides Subtracts the vector from min and adds it to max

      Parameters

      • out: box2.Box2

        The output Box2

      • box: readonly [number, number, number, number]

        The input Box2

      • vector: readonly [number, number]

        The vector to expand by

      Returns box2.Box2

      The expanded Box2