math docs
    Preparing search index...

    Function expandByMargin

    • Expands a Box3 uniformly by a scalar margin on all sides Subtracts the margin from min and adds it to max on each axis

      Parameters

      • out: box3.Box3

        The output Box3

      • box: box3.Box3

        The input Box3

      • margin: number

        The uniform margin to expand by

      Returns box3.Box3

      The expanded Box3